Configurable decoder with applications in fpgas

ABSTRACT

The invention relates to hardware decoders that efficiently expand a small number of input bits to a large number of output bits, while providing considerable flexibility in selecting the output instances. One main area of application of the invention is in pin-limited environments, such as field programmable gates array (FPGA) used with dynamic reconfiguration. The invention includes a mapping unit that is a circuit, possibly in combination with a reconfigurable memory device. The circuit has as input a z-bit source word having a value at each bit position and it outputs an n-bit output word, where n&gt;z, where the value of each bit position of the n-bit output word is based upon the value of a pre-selected hardwired one of the bit positions in the x-bit word, where the said pre-selected hardwired bit positions is selected by a selector address. The invention may include a second reconfigurable memory device that outputs the z-bit source word, based upon an x-bit source address input to the second memory device, where x&lt;z. The invention may produce the output n-bit, α bits at a time.

PRIORITY CLAIM

This application claims the priority of U.S. provisional application No. 60/838,651 filed on Aug. 18, 2006, and the contents thereof are hereby incorporated by reference in its entirety.

FUNDING

This invention was made with government support under grant number CCR-0310916 awarded by the National Science Foundation. The government has certain rights in the invention.

FIELD OF INVENTION

This invention relates to decoders. Specifically, it relates to mapping units and configurable decoders based upon mapping units, where each device outputs more bits, than are input to it.

1 BACKGROUND OF THE INVENTION

Over time, processor speeds have increased faster than the rate at which information can enter and exit a chip. In many cases, it was found that increasing processor speed while ignoring the effects of input/output (I/O) produced little improvement—essentially, if information cannot get into or out of the chip at a fast enough rate, then increasing CPU speed diminishes in importance.

Data transfer to and from a chip can be improved by increasing the bit rate and/or the number of I/O pins. Since pins cannot be miniaturized to the same extent as transistors (pins must be physically strong enough to withstand contact), the rate at which the number of transistors on a chip has increased far outpaces the rate at which the number of pins on a chip has increased. For example, in Intel microprocessors, the number of transistors has increased by a factor of 20,000 in the last 30 years, whereas the number of pins in these chips increased merely by a factor of 30. Hence, the rate at which a chip can generate and process information is much larger than the available conduit to convey this information. The restriction imposed by the unavailability of a sufficient number of pins in a chip is called “pin limitation.”

An example of the magnitude of the problem is presented by reconfigurable architectures, in particular, integrated circuit chips such as Field Programmable Gate Arrays (FPGAs). An FPGA is an array of programmable logic elements, all of which must be configured to suit the application at hand. A typical FPGA structure consists of a two-dimensional array of configurable logic elements connected by a configurable interconnection network, such as shown in FIG. 1. FIG. 1 shows a networked structure, where the configurable logic blocks (CLBs) are the configurable functional elements, and the switches “S” are the configurable elements in the interconnection network. Each CLB in an FPGA is sometimes subdivided into smaller configurable logic elements. For example, the Xilinx Virtex-5 FPGA's CLBs each contain two elements known as slices. At the deepest level, the most basic functional element in an FPGA usually consists of some combination of one or more Look-Up Tables (LUTs), combinational logic gates, flip-flops, and other basic logic elements. In the Virtex-5 FPGA, each slice contains four 64×1 LUTs, four flip-flops, an arithmetic and carry chain, and several multiplexers used to combine the outputs of the LUTs. Often the CLBs in an FPGA are also interspersed with other functional units, such as small memory blocks, other adder chains, and multipliers. Thus, a CLB can contain many configurable switches. Notwithstanding variations in FPGA terminology, we will use the term “CLB” to denote the basic unit represented in FIG. 2.

The FPGA's interconnection network is typically a two-dimensional mesh of configurable switches. As in a CLB, each switch S represents a large bank of configurable elements. The state of all switches and elements within all CLBs is referred to as a “configuration” of the FPGA. Because there is a large number of configurable elements in an FPGA (LUTs, flip-flops, switches, etc.), a single configuration requires a large amount of information. For example, the Xilinx Virtex-5 FPGA with a 240×108 array of CLBs requires in the order of 79 million bits for a single full configuration. The FPGA's CLBs are fine-grained functional elements that are incapable of executing instructions or generating configuration bits internally. Thus, configuration information must come from outside the chip. A limited amount of configuration information can be stored in the chip as “contexts;” however, given the limited amount of memory available on an FPGA for such a purpose, an application may require more contexts than can be stored on the FPGA. Hence, in most cases, configuration information must still come from outside the chip, and the pin limited input can have severe consequences for the time needed for reconfiguration.

A number of applications benefit from a technique called dynamic reconfiguration, in which elements of the FPGA chip are reconfigured to alter their interconnections and functionality while the application is executing on the FPGA. Dynamic reconfiguration has two main benefits. First, a dynamically reconfigurable architecture can reconfigure between various stages of an application to use its resources efficiently at each stage. That is, it reuses hardware resources more efficiently across different parts of an algorithm. For example, an algorithm using two multipliers in Stage 1 and eight adders in Stage 2 can run on dynamically reconfigurable hardware that configures as two multipliers for Stage 1 and as eight adders for Stage 2. Consequently, this algorithm will run on hardware that has two multipliers or eight adders, as opposed to a non-configurable architecture that would need two multipliers and eight adders.

The second benefit of dynamic reconfiguration is a fine tuning of the architecture to exploit characteristics of a given instance of the problem. For example in matching a sequence to a given pattern, the internal “comparator” structure can be fine-tuned to the pattern. Further, this tuning to a problem instance can also produce faster solutions.

Dynamic reconfiguration requires a fast reconfiguration scheme. Because of this, partial reconfiguration is normally performed where only a portion of the FPGA is reconfigured. Partial configuration involves selecting the portion of the FPGA requiring reconfiguration (the addresses) and inputting the necessary configuration bits. Due to pin limitation, only a very coarse selection of addresses is available in a given time increment, resulting in a still substantially large number of FPGA elements being selected for reconfiguration. This implies that elements that do not need to be reconfigured must be “configured” anyway along with those that actually require reconfiguration.

In partial reconfiguration, the information entering the chip can be classified into two categories: (a) selection and (b) configuration. The selection information contains the addresses of the elements that require reconfiguration, while the configuration information contains the necessary bits to set the state of the targeted elements.

In order to facilitate partial reconfiguration, FPGAs are typically divided into sets of frames, where a frame is the smallest addressable unit for reconfiguration. In current FPGAs, a frame is typically one or more columns of CLBs. Currently, partial reconfiguration can only address and configure a single frame at a time, as a 1-hot decoder is usually employed. If we assume that each CLB receives the same number of configuration bits, say α, and the number of CLBs in each frame is the same, say C, then the number of configuration bits needed for each frame is Cα. If the number of bits needed for selecting a single frame is b, then the total number of bits B needed to reconfigure a frame is:

B=b+Cα.

Since the granularity of reconfiguration is at the frame level, every CLB in a frame would be reconfigured, regardless of whether or not the application required them to be reconfigured. This can result in a “poorly-focused” selection of elements for reconfiguration, as more elements than necessary are reconfigured in each iteration. This implies that a large number of bits and a large time overhead are spent on the reconfiguration of each individual frame. If the granularity of selection is made finer, i.e., if fewer CLBs are in each frame, then the number of selection bits needed to address the frames increases by a small amount while the number of configuration bits for each frame decreases. However since a 1-hot decoder can select only one frame per iteration, this also increases (on an average) the total number of iterations necessary to reconfigure the same amount of area in the FPGA. Pin limitation thus creates a severe restriction on the extent to which an FPGA can be dynamically reconfigured.

1.1 Notation

Before we proceed further, we introduce some notation.

In general, we use the term “word” to mean a set of bits. Different words may have different numbers of bits. We also use the terms “string” and “signal” synonymously with “word.”

The O(·) notation indicates an upper bound on the “order of” and is used to describe how the size of the input data affects resources (time, cost etc.) in an algorithm or hardware. Specifically, for two functions f(n) and g(n) of a variable n, we say that f(n)=O(g(n)) if and only if, there is positive constant c>0 and an integer constant n₀, such that for all n≧n₀, we have f(n)≦cg(n). The relationship f(n)=O(g(n)) signifies that the “order of” (or asymptotic complexity of) f(n) is at most that of g(n) or that f(n) increases at most as fast as g(n). If O( . . . ) denotes a lower bound on the complexity, then Ω(·) and Θ(·) indicates an upper bound on, and the exact complexity, respectively. Specifically, f(n)=Ω(g(n)) if and only if g(n)=O(f(n)). We say f(n)=Θ(g(n)) if and only if f(n)=O(g(n)) and f(n)=Ω(g(n)).

Parts of the invention will be described in terms of “ordered partitions.” A partition of set A is a division of the elements of the set into disjoint non-empty subsets (or blocks). A partition ir with k blocks is called a k-partition. For example, a 3-partition of the set {8, 7, 6, 5, 4, 3, 2, 1, 0} is {{7, 6, 5, 4}, {3, 2}, {1, 0}}. Partitions have no imposed order. An ordered k-partition is a k-partition {S₀, S₁, . . . , S_(k−1)} with an order (from 0 to k−1) imposed on the blocks. An ordered partition will be denoted

ordered list of blocks). For instance, a 2-partition {S₀, S₁}, may be ordered as

S₀, S₁

or

S₁, S₀

, and

S₀, S₁

≠

S₁, S₀

.

A useful operation on partitions is the product of two partitions. Let π₁ and π₂ be two (unordered) partitions (not necessarily of the same size). Let π₁={S₀, S₁, . . . , S_(k)} and π₂={P₀, P₁, . . . , P_(l)}, then their product π₁π₂ is a partition {Q₀, Q₁, . . . , Q_(m)} such that for any block Q_(h)επ₁π₂, elements a, bεQ_(h) if and only if there are blocks S_(i)επ₁ and P_(j)επ₂, such that a, bεS_(i)∩P_(j). That is, two elements are in the same block of π₁π₂ if and only if they are in one block of π₁ and in one block of π₂. For instance, consider the partitions π₁={{7, 6, 5, 4}, {3, 2}, {1, 0}} and π₂={{7, 6}, {5, 4, 3, 2}, {1, 0}}. Then π₁π₂={{7, 6}, {5, 4}, {3, 2}, {1, 0}}=π₂π₁.

For any digital circuit, including those considered in this invention, an n-bit output can be viewed as a subset of an n-element set. Let Z_(n)={0, 1, . . . , n−1}. Consider an n-bit signal A=A(n−1)A(n−2) . . . A(0) (where A(i) is the i^(th) bit of A; in general, we will consider bit 0 to be the least significant bit or the lsb). If A is an n-bit output signal (or word) of a digital circuit, then it can be viewed as the subset {iεZ_(n):A(i)=1} of Z_(n). The n-bit string A is called the characteristic string of the above subset. The set {iεZ_(n):A(i)=1} is said to be characterized by A and is sometimes referred to as the characteristic set. For example if n=8, then output A=00001101 corresponds to the subset {0, 2, 3}. Outputs 00000000 and 11111111 correspond to the empty set, 0/ and Z_(n), respectively. (It should be noted that the convention could be changed to exchange the meanings of 0's and 1's. That is, a 0 (resp., 1) in the characteristic string represents the inclusion (resp., exclusion) of an element of Z_(n) in the set. All ideas presented in this document apply also to this “active-low” convention.)

Throughout this document, we assume (unless mentioned otherwise) that the base of all logarithms is 2. Consequently, we will write log n to indicate log₂ n. We will also use the notation log^(α) n to denote (log n)^(α).

1.2 Prior Art

Prior art methods to address the pin limitation problem include: (1) multiplexing, (2) storing information within the design, and (3) decoding. Multiplexing refers to combining a large number of channels into a single channel. This can be accomplished in a variety of ways depending on the technology. Each method assumes the availability of a very high speed, high bandwidth channel on which the multiplexing is performed. For example, in the optical domain, wavelength division multiplexing allows multiple signals of different wavelengths to travel simultaneously in a single waveguide. Time division multiplexing requires the multiplexed signal to be much faster than the signals multiplexed. Used blindly, this is largely useless in the FPGA setting, as it amounts to setting an unreasonably high clocking rate for parts of the FPGA.

Storing information within the design attempts to alleviate the pin limitation problem by generating most information needed for execution of an application inside the chip itself (as opposed to importing it from outside the chip). This requires a more “intelligent” chip. In an FPGA setting it boils down to an array of coarse grained processing elements rather than simple functional blocks (CLBs). One example is the use of virtual wires in which each physical wire corresponding to an I/O pin is multiplexed among multiple logical wires. The logical wires are then pipelined at the maximum clocking frequency of the FPGA, in order to utilize the I/O pin as often as possible. Another example of such a solution is the Self-Reconfigurable Gate Array. This latter approach is a significant departure from current FPGA architectures. Yet another approach is to compress the configuration information, thereby reducing the number of bits sent into the chip.

Decoders are the third means used to address the pin limitation problem. A decoder is typically a combinational circuit that takes in as input a relatively small number of bits, say x bits, and outputs a larger number of bits, say n bits, according to some mapping; such a decoder is called an “z-to-n decoder.” If the x inputs are pins to the chip and the n outputs are expanded within the chip, a decoder provides the means to deliver a large number of bits to the interior of the chip. An z-to-n decoder (that has x input bits) can clearly produce no more than 2^(x) output sequences, and some prior knowledge must be incorporated in the decoder to produce a useful expansion to n output bits. Decoders have also been used before with FPGAs in the context of configuration compression, where dictionary based or statistical schemes are employed to compress the stream of configuration bits. Our invention when used in the context of FPGAs has more application in selecting parts of the chip in a more focused way than conventional decoders do. However in a broader context, the method we propose is a general decoder for any scheme employing fixed size code words, that decode into (larger) fixed size target words.

As we noted earlier, for any digital circuit, including a decoder, an n-bit output can be viewed as a subset of the n-element set Z_(n)={0, 1, . . . , n−1}. Thus, the set of outputs produced by an x-to-n decoder can be represented as a set of (at most 2^(x)) subsets of Z_(n).

An illustration of 3-to-8 decoders (with 3 input bits and 8 output bits) is shown in Table 1.

TABLE 1 Example of 3-to-8 Decoders Decoder Inputs S₀ S₁ S₂ S₃ 000 00000001 01010101 11111111 00001101 001 00000010 10101010 00001111 10010010 010 00000100 00110011 00000011 10100010 011 00001000 11001100 00000001 00111101 100 00010000 00001111 11110000 01001110 101 00100000 11110000 11000000 11010001 110 01000000 11111111 10000000 11100001 111 10000000 00000000 00111100 01111110

Sets S₀, S₁, S₂ and S₃ represent different decoders, each producing subsets of Z_(n). For instance, S₀ corresponds to the set of subsets {{0}, {1}, {2}, . . . {7}}. This represents the 3-to-8 one-hot decoder.

Current decoders in FPGAs are fixed decoders, producing a fixed set of subsets (output bit combinations) over all possible inputs. The fixed decoder that is normally employed in most applications is the one-hot decoder that accepts a (log₂ n)-bit input and generates a 1-element subset of Z_(n) (see set S₀ in Table 1). (In subsequent discussion all logarithms will be assumed to be to base 2, that is, log_(n=log) ₂ n.) In fact, the term “decoder” is usually taken to mean the one-hot decoder.

A one-hot decoder causes severe problems if, in an array of n elements, some arbitrary pattern of those elements is needed for reconfiguration. Here, selecting an appropriate subset can take up to Θ(n) iterations. Notwithstanding this inflexibility, one-hot decoders are simple combinational circuits with a low O(n log n) gate cost (typically given as the number of gates) and a low O(log n) propagation delay. The one-hot decoder will usually take multiple cycles or iterations to set all desired elements to the desired configuration. Thus, reconfiguration is a time consuming task in current FPGAs and consequently, they fail to fully exploit the power of dynamic reconfiguration demonstrated on theoretical models.

Look-up tables (LUTs) can function as a “configurable decoder.” A 2^(x)×n LUT is simply a (2^(x))-entry table, where each entry has n bits. It can produce 2^(x) independently chosen n-bit patterns that can be selected by an x-bit address. LUTs are highly flexible as the n-bit patterns chosen for the LUT need no relationship to each other. Unfortunately, this “LUT decoder” is also costly; the gate cost of such a LUT is O(n2^(x)). For a gate cost of O(n log n), a LUT decoder can only produce O(log n) subsets or mappings. To produce the same number of subsets as a one-hot decoder, the LUT decoder has O(n²) gate cost. Clearly, this does not scale well.

What is needed is a configurable decoder that is an intermediary to the high flexibility, high cost LUT decoder and the low flexibility, low cost fixed decoder.

2 SUMMARY OF THE INVENTION

It is an object of the invention to allow the multicasting of x bits into n bits through hardwired circuitry where the hardwired route is selected by an input selection word.

It is an object of the invention to provide a device that can be incorporated into an FPGA device (or any other chip operating in a pin-limited environment) to allow for the expansion of x bits input, to the FPGA device over x pins, to be expanded into n bits (where n>x) internally in the FPGA to allow for an increase in the selection reconfiguration information to reconfigure the FPGA device.

It is an object of the invention to allow the multicasting of x bits into n bits, a bits at a time, through hardwired circuitry, where the hardwired route is selected by an input selection word from a reconfigurable memory device.

It is an object of the invention to provide a reconfigurable mapping unit in conjunction with a second reconfigurable memory unit, where the second memory unit allows for selection of the z bits to be input into the reconfigurable mapping unit from x bits, where x<z.

Accordingly, the invention includes a reconfigurable mapping unit that is a circuit, possibly in combination with a reconfigurable memory device. The circuit has as input an x-bit word having a value at each bit position, and a selector bit word, input to the circuit. The circuit outputs an n-bit word, where n>x, where the value of each bit position of the n-bit output word is based upon the value of a pre-selected hardwired one of the bit positions in the x-bit word, where said hardwired pre-selected bit positions is selected by the value of the selector bit word. The invention may include a second reconfigurable memory device that outputs the z-bit word, based upon an input x-bit word to the second memory device, where x<z. The invention may produce the output n bit, a bits at a time.

3 BRIEF DESCRIPTION OF THE FIGURES

FIG. 1 shows the structure of a typical field-programmable gate array (FPGA).

FIG. 2 shows a block diagram of the Xilinx Virtex 5 configurable logic block.

FIG. 3 shows a block diagram for the function of a fan-in of degree f and width w.

FIG. 4 shows a block diagram for the function of a fan-out of degree f and width w.

FIG. 5 illustrates the typical implementation of a one-hot decoder though a 4-to-16 one-hot decoder.

FIG. 6 illustrates the typical implementation of a multiplexer through a 4-to-1 multiplexer.

FIG. 7 shows the block diagram of a 2^(z)×m LUT.

FIG. 8 shows an implementation of a 2^(x)×m LUT.

FIG. 9 shows the structure of the shift register

${{SR}\left( {z,\frac{z}{\alpha}} \right)}.$

FIG. 10 shows one way to implement a shift register

${SR}\left( {z,\frac{z}{\alpha}} \right)$

that can be used as a serial-to-parallel and parallel-to-serial converter.

FIG. 11 shows a block diagram of a mapping unit MU(z, y, n, α).

FIG. 12 shows an example with two different multicasts of 4 bits to 8 bits. Each multicast is further illustrated with different values for the 4-bit source word.

FIG. 13 shows the general structure of a mapping unit MU(z, y, n, α).

FIG. 14 shows a fixed mapping unit MU(4, 1, 8, 1) that produces the set of subsets S₀ and S₁ of Table 2.

FIG. 15 shows a fixed mapping unit MU(4, 2, 8, 1) that produces all three sets of subsets of Table 2.

FIG. 16 shows the butterfly network, configured to illustrate the example permutation used in the discussion of post-permutation in mapping units.

FIG. 17 shows an implementation of a bit-slice mapping unit MU(z, y, n, α).

FIG. 18 shows the structure of a mapping-unit-based configurable decoder MUB(x, z, y, n, α).

FIG. 19 illustrates two binary tree reductions of n=8 elements. For each of these reductions the corresponding bit patters (subsets) are also shown.

FIG. 20 shows the communicating pairs in an ASCEND/DESCEND pattern for n=8. The corresponding bit patters (subsets) for each level of communication is also shown.

FIG. 21 shows a parallel MU-B decoder that generates the one-hot subsets of Z_(n).

FIG. 22 shows the hardwired partitions used in the two parallel MU-B decoders in an optimal configuration generating the 1-hot subset of Z_(n).

FIG. 23 shows a parallel O(n)-cost one-hot 4-to-16 fixed decoder; here n=16.

FIG. 24 shows a general structure of a parallel MU-B decoder MUB(x, z, y, n, α, P).

FIG. 25 shows a serial MU-B decoder variant.

FIG. 26 shows a conceptual view of a recursive bit-slice mapping unit. In the figure α_(i)=α₀α₁ . . . α_(i−1).

4 DETAILED DESCRIPTION OF THE INVENTION

The invention includes a mapping unit, and a configurable decoder that incorporates a mapping unit. The mapping unit may be an integral or bit-slice mapping unit. The invention includes configurable decoder variants and methods to construct the partitions required to configure a mapping unit. We will compare the invention to existing circuits, where the comparison is in terms of performance parameters (such as circuit delays and circuit costs, as measured by the number of overall gates in a design). All parameters are expressed in terms of their asymptotic complexity to avoid minor variations due to technology and other implementation-specific details.

We assume that each instance of a gate has constant fan-in, constant fan-out, unit cost and unit delay; the fan-in and fan-out are each assumed to be at least 2 and here constant means independent of problem size. While the cost and delay of some logic gates (such as XOR) is certainly larger than the size and delay of smaller logic gates (such as NAND in some technologies), the overall number of gates in the circuit and the depth of the circuit provide a better measure of the circuit's costs and delays, rather than factors arising from choices specific to a technology and implementation. We divide the performance parameters into two categories: independent parameters and problem dependent parameters. Independent parameters are applicable to all circuits, while problem dependent parameters are specific to decoders. The calculated performance parameters are delay and gate cost. The delay or time cost of a combinational circuit is the length of the longest path from any input of the circuit to any output. The gate cost (or simply cost) of a circuit is the number of gates (AND, OR, NOT) in it. Clearly, the use of other gates such as NAND, XOR, etc. will not alter the gate cost expressed in asymptotic notation.

Here a decoder is a combinational circuit (with the exception of the bit-slice units later described), that, in order to achieve a greater degree of flexibility, can be combined with look-up tables (LUTs), to create a configurable mapping unit or a configurable decoder. While LUTs could be implemented using sequential elements, for this work, LUTs are functionally equivalent to combinational memory such as ROMs. Any type of memory could be used for a LUT.

Recall that any x-to-n decoder (including the mapping unit) takes x bits as input and out-puts n bits, and the set of subsets generated by the configurable mapping unit decoder are those tailored in part for the application at hand. Different applications require different sets of subsets of Z_(n), and do so with different constraints on speed and cost. The reconfigurable mapping unit and configurable decoder have a portion of the hardware that can be configured (off-line) to modify the output bit pattern. This allows one to freely select a portion of the subsets produced by the mapping unit or reconfigurable decoder. Hence, given an understanding of the problem to be addressed, the mapping unit and/or configurable decoder may be configured to address the specific problem.

Recall that an x-to-n decoder produces a set S of subsets of Z_(n). We denote the number of elements in S by Λ, that denotes the total number of subsets produced by the decoder. Clearly, Λ≦2^(x). The decoder allows some of the Λ subsets to be chosen arbitrarily (the independent subsets) while other subsets are set by prior choices (the dependent subsets). Let S⊂S′ denote the portion of subsets that can be produced independently by the decoder. For instance, in a LUT decoder, all entries are independent, while in a fixed decoder (non-configurable) there are no independent subsets. We define the following two parameters that are specific to decoders.

Number of independent subsets=λ=number of elements in S Total number of subsets=Λ; clearly λ≦Λ≦2^(x).

Basic circuit hardware is used as building blocks, in particular fan-in and fan-out circuits, one-hot decoders, multiplexers, look-up tables (LUTs), shift registers, and modulo-a counters. A brief explanation of each follows:

Fan-in and Fan-out: A fan-in operation combines f signals into a single output, while a fan-out takes a single input signal and generates f output signals. The fan-in and fan-out operations are as follows:

For integers f, z>1, let U₀, U₁, . . . , U_(f−1) be f signals, each z bits wide. A fan-in operation of degree f and width z produces a z-bit output W whose i^(th) bit W(i)=U₀(i)∘U₁(i)∘ . . . ∘ U_(f−1)(i). The operator o is an associative Boolean operation, such as AND, OR, NOR, etc. Diagrammatically, FIG. 3 shows a fan-in operation.

For integers f, z>1, let U be a z-bit wide signal. A fan-out circuit of degree f and width z produces f outputs W₀, W₁, . . . , W_(f−1), each z bits wide, where W_(j)(i)=U(i). Diagrammatically, FIG. 4 shows a fan-out operation.

Fan-in and fan-out circuits of degree f and width z can be constructed with a gate cost of O(fz) and a delay of O(log f).

As we noted earlier, all gates are assumed to have a constant fan-in and fan-out of at least 2; that is, the maximum number of inputs to a gate and the maximum number of other gates driven by the output of a given gate are independent of the problem size. When the fan-out of a signal in a circuit exceeds the driving capacity of a gate, buffers are inserted into the design. These additional buffers increase the cost and delay of the circuit. Gates typically have a fixed number of inputs. Realizing gates with additional inputs boils down to constructing a tree of gates. Assuming a non-constant fan-in and fan-out ignores the additional gate cost and delay imposed by these elements; Assuming some constant fan-in and fan-out (rather than a particular technology dependent constant) will not change the asymptotic costs and delays.

Fixed Decoders-One-Hot Decoders: A x-to-n decoder is a (usually combinational) circuit that takes x bits of input and produces n bits of output, where x<n. Usually x

n, and a decoder is used to expand an input from a small (2^(x)-element domain to an output from a large (2^(n))-element set.

Decoders can be divided into two broad classifications: (a) fixed decoders, which are inflexible, and (b) configurable decoders, where the set of subsets produced can be changed (or reconfigured) in some manner (typically off-line). One typical fixed decoder is the one-hot decoder.

In a one-hot decoder that operates on an input bit pattern of log n bits and producing an output bit pattern of n bits, each of the n-bit output patterns has only one active bit (usually with a value of ‘1’), all other bits being inactive (usually ‘0’). Such a decoder is exemplified by set S₀ in Table 1. This decoder, in effect, selects one element at a time. Usually, a one-hot decoder also has a select input that allows the output set to be null. The one-hot decoder is used so often that the term “decoder” in the context of combinational circuits is usually taken to mean a one-hot decoder. A typical implementation of one-hot decoder is shown for a 4-to-16, one-hot decoder in FIG. 5.

In general, an x-to-2^(x) one-hot decoder has a delay of O(x) and a gate cost of O(x2^(x)).

Multiplexers: A multiplexer or MUX is a combinational circuit that selects data from one of many inputs and directs it to a single output line. In general, a 2^(x)-to-1 multiplexer (or a (2^(x))-input multiplexer) takes 2^(x) data inputs and using x control bits, selects one of the 2^(x) inputs as the output.

An example of a typical implementation of a multiplexer with four inputs is shown in FIG. 6. In this figure, each of the four data inputs, U₀, U₁, U₂ and U₃ is selected via an AND gate and a combination of the two control bits V₀ and V₁, much like the one-hot decoder.

A 2^(x)-to-1 multiplexer can be implemented as a circuit with a gate cost of O(x2^(x)) and a delay of O(x).

Look-Up Table: A 2^(x)×m LUT is a storage device with m2^(x) storage cells organized as 2^(x) words, each m bits long; see FIG. 7. This LUT has as input x bits to address the 2^(x) locations and outputs an m-bit word. LUTs have a variety of other applications, such as implementing small logic functions. A 2^(x)×m LUT can implement any m Boolean functions, each of x variables, by storing their truth tables. This use of LUTs is quite common for implementing Boolean functions in FPGAs.

While LUTs can be implemented in a variety of ways, all LUTs require the same two components: a memory array and a method of addressing a word in the memory array. One possible method of addressing the LUT is to use an x-to-2^(x) one-hot decoder. The output of the one-hot decoder activates a wordline and enables the outputs of the memory storage cells. Each of the memory storage cell outputs are then fanned-in to form an m-bit output word. See FIG. 8. The implementation shown in this figure is independent of the choice of memory storage elements. SRAM-based LUTs are perhaps the most common implementation; however, with minimal modifications, this basic design can easily accommodate other memory cell types. LUTs composed of sequential elements are also possible, however this would require the use of a clock. This clock can be independent of any other clock in the system. Regardless of the implementation chosen, the asymptotic cost of the structure is unchanged; choices in memory technology only alter the size and access times of the LUT by a constant factor. Thus, we will consider the LUT to be a combinational element for cost analysis.

A 2^(x)×m LUT can be implemented as a circuit with a gate cost of O(2^(x)(x+m)) and a delay of O(x+log m).

Shift Register (Parallel to Serial Converter): Define an α-position shift register of width z/α, denoted by

${{SR}\left( {z,\frac{z}{\alpha}} \right)},$

as follows. It accepts as input a z-bit signal, and every clock cycle, outputs a

$\left( \frac{z}{\alpha} \right)\text{-}{bit}$

slice of that signal. FIG. 9 diagrams the operation. The shift register can also be configured as a parallel-to-serial converter. That is accept z/α, bits during each cycle, and output an n-bit word every α cycles. FIG. 10 is a circuit implementation of such a shift register.

An α-position shift register of width z/α,

${SR}\left( {z,\frac{z}{\alpha}} \right)$

can be realized as a circuit with a gate cost of O(z) and a constant delay between clock cycles. Modulo-α Counter: For any α>1, a modulo-α (or mod-α) counter increments its output by ‘1’ every clock cycle, returning to ‘0’ after a count of α−1. Modulo-α counters are well known in the art.

A modulo-α counter can be realized as a circuit with gate cost O(log² α) and a delay of O(log log α).

4.1 The Mapping Unit

The base unit of the invention is the mapping unit, and its features are diagrammed in FIG. 11. The mapping unit MU(z, y, n, α) can be viewed as a type of decoder: it takes in a small number of bits (z bits) and expands them to a larger number of bits (n bits), where typically z<<n. We will refer to the z-bit input as the source word, the y-bit input as the selector address (or the selector address word), and the n-bit output as the output word.

The mapping unit accomplishes the expansion of the z-bit source word to the n-bit output word by “multicasting” the z-bits to n places. A multicast of z bits to n bits (or z places to n places) is a one-to-many mapping from the z source bits to the n output bits, such that each output bit is mapped onto from exactly 1 source bit, but each source bit may map to 0, 1 or more output bits. The multicast operation typically transfers the value of a source bit to the output bit it is mapped to. Here we will use it in a more general sense in that the output bit derives its value from the source bit it is mapped from, for example by complementation. Unless we note otherwise, a multicast transfers the value of each source bit to its corresponding output bits. (The inclusion of parameters y and α in the mapping unit MU(z, y, n, α) will be described later).

As an example, a fixed mapping of 4 to 8 bits can be represented as a 4 to 8 multicast, and is diagrammed in FIG. 12( a)-(d), where FIG. 12( a), (b) represent one fixed multicast operation while FIG. 12( c) and (d) represent a second fixed multicast operation.

As an illustration, consider a multicast of four bits a(3), a(2), a(1), a(0) to 8 bits b(7), b(6), b(5), b(4), b(3), b(2), b(1), b(0), such that b(0)=a(0), b(1)=6(3)=b(5)=b(7)=a(3), b(2)=b(6)=a(2) and b(4)=a(1). If a=0111, then b=01010101 (FIG. 12( a)). If a=0011, then b=00010001 (FIG. 12( b)). A different 4 to 8 mapping of a to b will result in different outputs. For example, if the mapping is b(0)=a(0), b(1)=a(1), b(2)=b(3)=a(2) and b(4)=b(5)=b(6)=b(7)=a(3), then for a=0111, b=00001111 (FIG. 12( c)), while if a=0011, then b=00000011 (FIG. 12( d)). The mapping unit of the invention is broader than a unit containing one fixed multicasting operation. It uses several fixed multicasts, and the choice of the multicast operation to be employed is selected by the value of the y-bit selector address input to the mapping unit, as shown in FIG. 11. Hence, the number of possible multicasts used in a MU(z, y, n, α) is 2^(y).

Another characterization of a multicast is in terms of an ordered partition. Consider a multicast of bits a(z−1), a(n−2), . . . , a(1), a(0) to bits b(n−1), b(n−2), . . . , b(1), b(0). An ordered z-partition

S₀, S₁, . . . , S_(z−1)

of Z_(n)={0, 1, . . . , n−1} represents this multicast if and only for all bit positions j of a particular block S_(i), b(j) gets its value from a(i).

For example, the multicasts of FIGS. 12( a),(b) and (c),(d) correspond to the ordered 4-partitions {right arrow over (π)}₁=

{7, 5, 3, 1}, {6, 2}, {4}, {0}

and {right arrow over (π)}₂=

{7, 6, 5, 4}, {1}, {0}

. The ordered partition represents the mapping of the source word bits to the output word bits, where the position of the block in the partition (for instance block {7, 5, 3, 2} is in position 4 of {right arrow over (π)}₁) represents the position of the source word bit (position 4 here), and the value of the block ({7, 5, 3, 2} here) represents the output word bit positions to which the value of the input bit get mapped or cast into (here a(4) gets mapped to b(7), b(5), b(3) and b(2)). Hence a mapping unit can be considered a mapping of a z-bit source word to an n-bit output word, using an ordered partition selected by the selector address (y bits), or a mapping

μ:Z ₂ _(z) ×Z ₂ _(y) →Z ₂ _(n) .

In summary, MU(z, y, n, α) accepts as input a z-bit source word, U, and an ordered partition {right arrow over (π)} (one among 2^(y)) as selected by the y-bit selector address, B, of FIG. 11, and produces as output an n-bit output word (or a subset of Z_(n)). The source word could assume any value from {0,1}^(z). The set of 2^(y) ordered partitions is fixed (usually hardwired in the mapping unit) and/or configured into a LUT internal to the mapping unit.

4.1.1 Different Types of Mapping Units

As described, a mapping unit is a decoder that accepts as input a z-bit source word u and an ordered z-partition {right arrow over (π)} of an n-element set (specified in terms of a y-bit selector address). It produces an n-bit output word. Mapping units can be classified as integral or bit-slice. An integral mapping unit generates all n output bits simultaneously and (for reasons explained below) has the parameter α set to 1. A bit-slice mapping unit, on the other hand, generates the n output bits in a rounds; i.e., n/α bits at a time. One could view the integral mapping unit as a bit-slice mapping unit with α=1. Another way to categorize mapping units (both integral and bit-slice) is in terms of whether they are fixed or configurable (that is, based on whether they can be configured off-line to alter their behavior). Configurable mapping units can be general or universal. In informal terms, a universal mapping unit can produce any subset. Fixed mapping units cannot be universal (unless n is very small or a very high cost can be accepted).

A General Model of a Mapping Unit: A general structure of a mapping unit, MU(z, y, n, α), is as shown in FIG. 13. The n-bit output word comes from a bank of n multiplexers (MUXs). MUX i (where 0≦i<n) accepts 2^(yi) data bits as input and uses y_(i) control bits. Each data input of a MUX is hardwired from one of the z source bits. This relationship between the source word and MUX inputs is fixed at the time of manufacture (even for configurable mapping units); although, in principle, some amount of configurability may be introduced in these connections. Denote the y_(i)-bit control signal of MUX i by B_(i). The concatenated control bits

B₀, B₁, . . . , B_(n−1)

is called the selector word of the mapping unit. The selector word can be of different sizes and can be generated in a variety of ways in different types of mapping units. The mapping unit has, embedded in its structure, room for 2^(y) different selector words, each corresponding to an ordered partition (or a multicast scheme from the source word to the output word). These selector words are generated and chosen by the selector module, using a y-bit selector address. The different selector words can be stored in a “configuration LUT” and/or expressed by the value of the selector address. For the mapping unit models we discuss beyond this point, y_(i)=y. This need not be the case, however, in general. The control bits can be derived in any manner from the y selector address bits, for example, by directly hardwiring a subset of the y bits to each MUX control. At the other extreme is using a LUT for the selection module with wordsize w such that

${\max \left\{ {{y_{i}\text{:}\mspace{14mu} 0} \leq i < n} \right\}} \leq w \leq {\sum\limits_{i = 0}^{n - 1}{y_{i}.}}$

Here, some or all of the w bits in each selector word can be used to control a MUX.

We now describe two main types of mapping units, fixed and configurable. Other types and variants are described later.

Fixed Mapping Unit: In the fixed mapping unit (FMU), the y-bit selector address is broadcast as the control signal to each MUX. That is, the selector module constructs the selector word by concatenating n copies of the selector address. Therefore, y_(i)=y. As an example, let z=4, y=1, and n=8. Then there are 2^(y)=2 ordered partitions mapping the 4 source word bits to the 8 output word bits. Let the mappings be as shown in FIGS. 12( a),(b) and (c),(d), which produce the sets of subsets S₀ and S₁ from Table 2. The resulting FMU is shown in

TABLE 2 Example sets of subsets of Z₈. S_(j) ^(i) S₀ S₁ S₂ S₀ ^(i) 11111111 11111111 10100010 S₁ ^(i) 01010101 00001111 11111101 S₂ ^(i) 00010001 00000011 01011010 S₃ ^(i) 00000001 00000001 00000111 FIG. 14. Notice that if input signal B=0, then U(0) is connected to Q(0), U(1) is connected to Q(4), U(2) is connected to Q(2) and Q(6), etc. This matches the configuration shown in FIGS. 12( a) and (b). Similarly, if B=1, then U(0) is connected to Q(0), U(1) is connected to Q(1) etc. It can be shown that a fixed mapping unit can be realized as a circuit with a gate costs of O(ny2^(y)) and a delay of O(y+log n). Configurable Mapping Unit: When the ordered partitions of a mapping unit are fixed (as in an FMU), it can be shown that certain subsets cannot be produced. Here, we seek to provide a means to change the ordered partitions off-line in a configurable mapping unit (or CMU).

In a CMU, the selector module is a 2^(y)×ny LUT (called the configuration LUT). Each ny-bit LUT-line is a selector word containing n MUX control signals, each y bits long. That is, yi=y. However, unlike the FMU, the values stored in the LUT are completely unconstrained.

It can be shown that a configurable mapping unit, MU(z, y, n, α), can be realized as a circuit having a gate cost of O(ny2^(y)) and a delay of O(y+log n).

As an example of the functionality of a configurable mapping unit, consider the fixed mapping unit with z=2^(y) of FIG. 15 which implements all four sets of subsets in Table 2. If a CMU was used to implement the same set of subsets using the same wiring of the signal U to the n-multiplexers, then Table 3 shows the contents of the configuration LUT. Note that the contents specify an ordered partition corresponding to a set of subsets, and not the subset

TABLE 3 Configuration LUT words to produce the subsets of Table 2. selector address ny-bit selector word Set b ∈ B in LUT S_(i) 00 00 00 00 00 00 00 00 00 S₀ 01 01 01 01 01 01 01 01 01 S₁ 10 10 10 10 10 10 10 10 10 S₂ 11 11 11 11 11 11 11 11 11 S₃ itself. For example, when b=00, the LUT word is 00 00 00 00 00 00 00 00 corresponding to the ordered partition {right arrow over (π)}₀ for set S₀ (see Tables 2 and 4). Then with u=0111, we have the output word μ(u, {right arrow over (π)}₀)=01010101. Similarly, with u=0011, we μ(u, {right arrow over (π)})=00010001. Thus, in this illustration, the selector address b=00 corresponds only to the ordered partition {right arrow over (π)} for S₀.

There are two important properties of the configurable mapping unit. The first is that from a perspective outside of the mapping unit, nothing changes between a fixed mapping unit and a configurable mapping unit; that is, to produce a desired subset S_(j) ^(i), the same values are needed for signals U and B in a configurable mapping unit as they are in a fixed mapping unit. The second is that each “grouping” of the y control bits (each corresponding to a particular MUX) in the ny-bit selector words has the same value in an FMU; If this value is v, then each of the n output bits is derived from the ordered partition {right arrow over (π)}_(v). However, this does not have to be the case in a CMU. For example, a word in the LUT illustrated in Table 3 could have the value 00 01 10 11 00 01 10 11; this is a combination of values of different ordered partitions for different MUXs. For example, bits 7, 6 and 5 of the 8-bit output word would be derived from {right arrow over (π)}₀, {right arrow over (π)}₁ and {right arrow over (π)}₂, respectively, as 00, 01 and 10 are the binary representations of 0, 1 and 2, respectively. This would result in multicast with the ordered partition

{7, 6, 3, 1}, {4,2}, {0}, {5}

.

Not all sets of subsets can be generated by the CMU, however, as fixing the multicasts of the bits of the source word to the MUXs may preclude certain subset considerations.

4.1.2 Hardwiring and Configuring Mapping Units

The main function of the mapping unit is to convert a set of source words into a set of output words that correspond to a given set S of subsets of Z_(n). In order to achieve this we consider two scenarios.

-   -   The mapping unit's hardwiring has already been fixed. The set of         subsets that can be produced can be limited by this hardwiring         between the source word and the MUX data inputs. Can a given S         be produced by the mapping unit? If S can be produced, then what         are the source words that produce the subsets? For a         configurable mapping unit, what are the contents of the         configuration LUT?     -   Here we are designing the entire mapping unit, including the         hardwired connections. How can we factor in an expected set of         subsets into the design? If no set of subsets is given, what         hardwired connections provide the flexibility to produce a large         number of subsets?

We address with these questions in the subsequent sections.

Constructing Partitions Given a Set of Subsets: As we described earlier, an ordered partition is an abstract representation of a multicast from the source word to the output word. It is possible for different source words to use the same ordered partition to generate different output words (or subsets). Ideally, the 2^(z) source words and 2^(y) (ordered partition) selector words should produce 2^(z+y) distinct output words, each of which must be one of interest to us. This requires a careful selection of ordered partitions and source words.

Here we describe a procedure (called Procedure Part_Gbn) that creates partitions (multicasts) for a mapping unit MU (z, y, n, α). As a vehicle for explanation, we will also impose an (arbitrary) order on the partitions we generate. Later we will present a method to order the partition systematically. Procedure Part_Gen generates one of many possible sets of partitions. Subsequently, another procedure will outline how one could use Procedure Part_Gen to find a suitable set of partitions.

Let S be a set of subsets of Z_(n) that we wish the mapping unit to generate. A given subset S of Z_(n) (i.e., a particular n-bit output word having bit positions indexed 0 to n−1) induces a 1- or 2-partition π_(S), where π_(S) is the 1-partition {Z_(n)} if S is empty or S=Z_(n); otherwise, π_(S) is the 2-partition {S, Z_(n)−S}. The induced partition is not unique for a given S as π_(S)=π_(Z) _(n) _(−S)={Z_(n)−S, S}. When a subset is represented by an n-bit sequence (as described earlier), the induced partition creates two blocks, one containing the bit positions that have a 0 value, and the other block containing the bit positions having a 1 value. For instance, if the subset is represented by the bit stream 10001100, then the induced partition is the 2-partition {{0, 1, 4, 5, 6}, {2, 3, 7}}, while if the input bit stream is 11111111, then the induced partition is the 1-partition {{0, 1, 2, 3, 4, 5, 6, 7}}. The induced partition is not an ordered partition.

Let S={S₀, S₁, . . . , S_(k−1)} be a set of subsets of Z_(n), and let each subset S_(i) induce the partition π_(S) _(i) . Define the partition induced by S to be the product of the individual induced partitions, π_(S)=π_(S) ₀ π_(S) ₁ . . . π_(S) _(k−1) . An example will illustrate these ideas. Consider the set of subsets of S₀, S₁ and S₂ (of Z₈) in Table 2, where each set of subsets has Tour elements, i.e. S_(i)={S₀ ^(i), S₁ ^(i), S₂ ^(i), S₃ ^(i)}, for 0≦i≦2. The partitions induced by each element of the set of subsets is contained in Table 4 (note, there are four induced partitions for each S_(i), corresponding to its four elements). Then,

TABLE 4 Partitions π_(S) _(j) ^(i) for subsets S_(j) ^(i) of Table 2. S_(j) ^(i) π_(S) _(j) ⁰ π_(S) _(j) ¹ π_(S) _(j) ² S₀ ^(i) {{7, 6, 5, 4, 3, 2, 1, 0}} {{7, 6, 5, 4, 3, 2, 1, 0}} {{6, 4, 3, 2, 0}, {7, 5, 1}} S₁ ^(i) {{7, 5, 3, 1}, {6, 4, 2, 0}} {{7, 6, 5, 4}, {3, 2, 1, 0}} {{1}, {7, 6, 5, 4, 3, 2, 0}} S₂ ^(i) {{7, 6, 5, 3, 2, 1}, {4, 0}} {{7, 6, 5, 4, 3, 2}, {1, 0}} {{7, 5, 2, 0}, {6, 4, 3, 1}} S₃ ^(i) {{7, 6, 5, 4, 3, 2, 1}, {0}} {{7, 6, 5, 4, 3, 2, 1}{0}} {{7, 6, 5, 4, 3}, {2, 1, 0}}

π_(S) ₀ ={{7,5,3,1},{6,2},{4},{0}}

π_(S) ₁ ={{7,6,5,4},{3,2},{1},{0}}

π_(S) ₂ ={{7,5},{6,4,3},{1},{2,0}}.

The procedure to create a set of z-partitions that generate a given set S of subsets of Z_(n) is as follows. It assumes that the subsets of S are ordered in some manner. We indicate this by the symbol {right arrow over (S)}. At this stage it is not important how the subsets are ordered. We will assume that the indices of the elements of {right arrow over (S)} reflect their order. This order determines the order in which the algorithm will consider each subset and does not reflect how the partitions will be ordered.

Procedure Part_Gen({right arrow over (S)}, z); generates partitions for {right arrow over (S)}, each with ≦z blocks.

-   -   1. For each S_(i)εS, compute its induced partition π_(S) _(i) .     -   2. Starting from π₀, pick the largest integer l such that π_(S)         ₀ π_(S) ₁ . . . π_(S) _(l−1) has ≦z blocks. Let π₀=π_(S) ₀ π_(S)         ₁ . . . π_(S) _(l−1) .     -   3: Starting from π_(l), pick the largest integer m such that         π_(S) _(l) π_(S) _(l+1) . . . π_(S) _(l+m−1) has ≦z blocks. Let         π₁=π_(S) _(l) π_(S) _(l+1) . . . π_(S) _(l+m−1) .     -   4. Repeat this process until all induced partitions π_(S) _(i)         have been included in some π_(j).

The partitions π₀, π₁, . . . are the outputs of Procedure Part_Gen. The basic idea of the procedure is to “add” subsets in the prescribed order into the current partition until the partition has too many blocks. Then it starts afresh with the next partition. We will use this notion of “adding a subset” to an existing partition later in this discussion. We illustrate the procedure with the following example.

Let S=S₀∪S₁∪S₂ using the sets in Table 2, let z=4, then

{right arrow over (S)}={S₀ ⁰,S₁ ⁰,S₂ ⁰,S₃ ⁰,S₁ ¹,S₂ ¹,S₀ ²,S₁ ²,S₂ ²,S₃ ²}.

(Note that S₀ ¹, and S₃ ¹ are not included as these are repeated elements). The induced partitions corresponding to each S_(j) ^(i) are in Table 4. Then using the Procedure Part_Gen we obtain

π_(S) ₀ ₀ ·π_(S) ₁ ₀ ={{7,5,3,1},{6,4,2,0}}

π_(S) ₀ _(,0)·π_(S) ₁ ₀ ·π_(S) ₂ ₀ ={{7,5,3,1},{6,2},{4,0}}

π_(S) ₀ ₀ ·π_(S) ₁ ₀ ·π_(S) ₂ ₀ ·π_(S) ₃ ₀ ={{7,5,3,1},{6,2},{4},{0}}=π₀

π_(S) ₁ ₁ ·π_(S) ₂ ₁ ={{7,6,5,4},{3,2},{1,0}}=π₁

π_(S) ₀ ₂ ·π_(S) ₁ ₂ ={{7,5},{1},{6,4,3,2,0}}

π_(S) ₀ ₂ ·π_(S) ₁ ₂ ·π_(S) ₂ ₂ ={{7,5},{2,0},{6,4,3},{1}}

π_(S) ₀ ₂ ·π_(S) ₁ ₂ ·π_(S) ₂ ₂ ·π_(S) ₃ ₂ ={{7,5},{2,0},{6,4,3},{1}}=π₂

As we noted earlier, Procedure Part_Gen does not produce ordered partitions. However, we order them here to illustrate a few points. Order the partitions as

{right arrow over (π)}₀={{7,5,3,1},{6,2},{4},{0}},

{right arrow over (π)}₁={{7,6,5,4},{3,2},{1,0}},

{right arrow over (π)}₂={{7,5},{2,0},{6,4,3},{1}}.

The mapping unit uses these ordered partitions with values of the source words shown in Table 5 to generate each subset of S. Actually, the table illustrates the impact of two different orders on the partitions and is discussed later. For now, it suffices to observe the first set of 4 rows that apply to {right arrow over (π)}₀ that includes the subsets of S₀.

We now touch upon a few points about the relationship between ordered partitions, the source word and the output word (or subset). A subset can be generated in a variety of ways, as the same z-bit source word applied to different ordered partitions can result in the same value. In addition, two different source words applied to two differently ordered partitions can result in the same value.

A subset not in S can also be produced. For example, using the z-bit source word 1010 with the ordered partition {right arrow over (π)}₀ produces the output word 10111010 that corresponds to the subset {7, 5, 4, 3, 1} which is not in S.

Subsets and their induced partitions may be repeated. For example, subsets S₃ ⁰ and S₃ ¹ of the above example are equal, the above procedure ignores repeated subsets and their induced partitions in generating ordered partitions. However, partitions corresponding to classes of algorithms or specific applications may benefit from repeating subsets, that is, to include the repeats.

A partition with fewer than z blocks, such as π₁, results in “don't care” values (d) for the bits not corresponding to any block in the partition. Thus, the subset S₁ ¹ with source word d011 may be produced from the source word 0011 or 1011.

In the procedure, a different sequence of considering the induced partitions π_(S) _(j) _(i) can produce a different set or number of ordered partitions. For example, if the induced partitions were considered in reverse order, that is, starting with π_(S) ₃ ₂ , such that the non-ordered partitions were π₀=π_(S) ₃ ₂ π_(S) ₂ ₂ π_(S) ₁ ₂ etc., then the resulting ordered partitions would be {right arrow over (π)}₀=

{7, 5}, {2, 0}, {6, 4, 3}, {1}

, {right arrow over (π)}₁=

{7, 6, 5, 4}, {3, 2}, {1}, {0}

, and {right arrow over (π)}₂=

{7, 5, 3, 1}, {6, 2}, {4, 0}

.

The conversion of an unordered partition to an ordered partition can be done in as many z! ways. Some of these may be more advantageous than others. An ordering that results in common source words used to produce the subsets of S_(i) and S_(k) (corresponding to different ordered partitions) can be useful when the mapping unit is used as part of a larger design. This is because the same z-bit source words can be used to produce both S_(i) and S_(k). Table 5 demonstrates two ordered partitions for S₀ and S₁, resulting in two sets of source words for each set. Note that using ordered partition

{7, 5, 3, 1}, {6, 2}, {4}, {0}

for S₀ and

{7, 6, 5, 4}, {3, 2}, {1}, {0}

for S₁ results in the same set of 4 source words for both sets of subsets. We describe a similar effect for binary reductions (discussed later).

It can be shown that, if the partitions of the mapping unit MU(z, y, n, α) are not fixed, then the mapping unit can generate a number of independent subsets λ≧2^(y) └log z┘, provided 2^(y) log z≦2^(x). If the partitions are fixed and z+y≦n, then it can be proved that the number of independent subsets is 0.

It can be shown that for integers n, z≧2, and

$\left. {y \leq \left\lceil \frac{n}{z - 1} \right\rceil} \right)$

there exists a mapping unit that uses C values from {0, 1, . . . , 2^(z)−1} as source words and Y≦2^(ξ) ordered partitions to produce CY distinct subsets. That is, it is possible to construct a mapping unit with z+y bits of input (where

${\xi = \left\lceil \frac{n}{z - 1} \right\rceil},$

that produces 2^(y)(2^(z)−2) distinct outputs (which is not too far from the theoretically maximum possible number of 2^(y+z)=2^(y)2^(z) distinct outputs). Checking a Partition for Realizability: Suppose a partition places output word indices i and j in the same block. Suppose the hardwired connections are such that no bit of the

TABLE 5 Two different orderings for the partitions of sets S₀ and S₁ resulting in different sets of source words used to produce the subsets in each set. S_(j) ^(i) π z-bit value needed Q S₀ ⁰

{7, 5, 3, 1}, {6, 2}, {4}, {0}

1111 11111111 S₁ ⁰ 0111 01010101 S₂ ⁰ 0011 00010001 S₃ ⁰ 0001 00000001 S₀ ⁰

{4}, {6, 2}, {7, 5, 3, 1}, {0}

1111 11111111 S₁ ⁰ 1101 01010101 S₂ ⁰ 1001 00010001 S₃ ⁰ 0001 00000001 S₀ ¹

{7, 6, 5, 4}, {3, 2}, {1}, {0}

1111 11111111 S₁ ¹ 0111 00001111 S₂ ¹ 0011 00000011 S₃ ¹ 0001 00000001 S₀ ¹

{3, 2}, {0}, {7, 6, 5, 4}, {1}

1111 11111111 S₁ ¹ 1101 00001111 S₂ ¹ 0101 00000011 S₃ ¹ 0100 00000001 source word connects to both MUXs i and j. In this case, we cannot select a source word bit to multicast to output word bits i and j. That is, the given partition cannot be realized on the existing hardwired connections.

Here we present an algorithm that determines whether a given partition can be realized on a given set of hardwired connections, and if so, the algorithm determines a way to order the partition so that it can be realized.

For each output word bit position 0≦j<n, let G_(j) denote the set of source word bits that have been hardwired to one of the data inputs of the MUX at position j. For example in the mapping unit of FIG. 15, the multiplexers at output position 4 is connected to source word positions 1, 2 and 3. Similarly output position 5 (resp., 6) is connected to source word positions 0 and 3 (resp., 2 and 3). Thus G₄={1, 2, 3}, G₅={0,3} and G₆={2, 3}. For any subset B of Z_(n) (representing output positions), define the set H_(B) to be the set of source word indices that are connected to MUXs at every one of the output positions in B. That is,

$H_{B} = {\bigcap\limits_{j \in B}{G_{j}.}}$

Call the set H_(B), the source set of block B (with respect to the given set of hardwired connections).

A partition it is said to be realizable on a set of hardwired connections between the source word and MUX inputs if and only if there exists for each output position j, an assignment of a source word position i_(j), such that for any two output bit positions 0≦j, j′<n in (not necessarily distinct) blocks. B and B′ of π,

(a) i_(j)εH_(B) and i_(j′)εH_(B′) (b) If B=B′, then i_(j)=i_(j′); call this common source word position i_(B). (c) If B≠B′, then i_(j)≠i_(j′). The intuition is that the hardwired connections support a multicast from source word bit i_(j) to output position j. Since i_(j) is unique to the block containing j, the multicast is restricted to be within a block. In fact, the indices i_(j) convert π into the ordered partition if.

Clearly, a given partition may not be realizable on a set of hardwired connections. Is it possible to check if a given partition IT is realizable, and if so, order it accordingly?

Given π, construct a bipartite graph g_(π)=(Z_(z)∪π, E); that is, the set of nodes includes the bit positions of the source word and the blocks of π. For any iεZ_(z) and Bεπ, there is an edge between i and B if and only if iεH_(B).

For any graph, a matching on the graph is a set of edges of the graph such that no two edges are incident on the same node. A matching is a maximum matching, if no other matching has more edges than it.

Let the given partition π have k blocks. We now show that the π is realizable if and only if g has a matching with k edges. Suppose g_(π), has a matching with k edges. Clearly, this matching cannot include an edge that is incident on more than one block. Therefore the matching has exactly one edge per block. Each edge in a matching matches a block B to a unique source word bit position in the source set, H_(B), of B. This implies that it is realizable and in fact, the matching gives an order that must be imposed on π. Conversely, if π is realizable, then it must have a unique source word index i_(B)εZ_(z), for each block B, such that i_(B)εH_(B). Since i_(B)εH_(B), we have an edge between i_(B) and B in graph G_(π). Consequently, the unique correspondence to each block B from a source word position i_(B) constitutes a matching with k edges. Finally observe that if a k-element matching exists, then it must be a maximum matching as no matching can have more edges than there are blocks in the partition; this is because at most one edge in a matching can be incident on each node representing a block.

A simple method to impose a realizable order (if one exists) on an unordered partition is to find a maximum matching for its graph. If it has k edges (k is the number of blocks in π), then use it as indicated above to order π. If the matching has less than k edges, then no k-edge maximum matching exists and π is not realizable on the set of hardwired connections. Standard polynomial-time algorithms exist for maximum matchings on a bipartite graph.

Call the above algorithm for imposing a realizable order (if possible) on a partition as Procedure Realizable.

Constructing Realizable Partitions: Here we outline a strategy that invokes Procedure Part_Gen and Procedure Realizable to help produce a set of realizable partitions on the existing hardwired connections. We need to include all sets of S in the set of partitions, while keeping the number of partitions small. Key to doing this successfully is to order the elements of S “appropriately.”

Let B be a block of a partition π. Clearly as B increases in size; H_(B) tends to decreases in size. In fact, it is possible for H_(B) to be empty, in which case the partition is clearly not realizable. If hardwired connections were random, a good strategy would be to construct, partitions whose blocks have roughly the same size. This could be a guiding principle for the algorithm. If the hardwired connections follow some pattern, then that information could be used to develop a heuristic to select partitions with small blocks.

In general, determining an order that results in a realizable z-partition is not easy. In fact it is possible for the partition as induced by a single subset S to be unrealizable.

We outline a strategy to construct realizable partitions for a given set of subsets. The strategy has three phases.

In the first phase we examine different orders for the elements of the given set S (that is, we consider different {right arrow over (S)}), then call Procedure Part_Gen collecting as many large partitions (with “nearly” z-blocks) as possible. Between each call to Procedure Part_Gen, we remove the subsets accounted for so far from S. The orders considered in this phase may be based on some knowledge of the subsets to be generated.

The second phase is based on the observation that a partition with fewer blocks has a higher likelihood of being realizable. In this phase we repeat the processing in the first phase, this time calling Procedure Part_Gen with different values for the second parameter that limits the number of blocks in a partition. That is, we try to construct a partition with many blocks, but will settle for one with few blocks, if necessary.

The third phase is needed for those subsets S_(i)εS for which π_(S) _(i) itself is not realizable. The third phase splits these subsets S_(i) further with the aim of generating the elements of S_(i) a few at a time. This is similar to the approach followed by bit-slice mapping units (described later). In the extreme case if S_(i) is generated one element at a time, the strategy uses the same method currently followed in one-hot decoders.

The above approach will generate a set of realizable partitions. How small this set will be will depend on S and the amount of resources (time, memory etc.) that can be devoted to the algorithm. Although generation of an optimal number of realizable partitions is likely an intractable problem, many practical algorithms and the subsets they require exhibit a lot of structure, which makes them amenable to more analytical approaches (as illustrated in Section 4.3).

We now discuss approaches to hardwire a mapping unit and to configure a configurable mapping unit.

Configuring a Configurable Mapping Unit: Consider now a set of 2^(y) partition π_(k) (where 0≦k<2^(y)), each of which is realizable on a set of hardwired connections. By the definition of realizability, we have ordered π_(k) into an ordered partition {right arrow over (π)}_(k). Let i_(j) ^(k) be the source word position associated with output j in some block Bε{right arrow over (π)}_(k). This implies that source word bit i_(j) ^(k)εG_(j); that is, source word bit i_(j) ^(k) is connected to some input (say input γ_(j) ^(k)) of the MUX corresponding to output j.

The configuration LUT consists of 2^(y) words, each ny bits long. Denote the k^(th) word by the n-tuple

w_(k,0), w_(k,1), . . . , w_(k,n−)

, where for any 0≦j<n, we have 0≦w_(k,j)<y. Configure the LUT so that w_(k,j)=γ_(j) ^(k). This will ensure that whenever line k of the LUT (or partition {right arrow over (π)}_(k)) is addressed, it will activate input γ_(j) ^(k) of the MUX (or bit i_(j) ^(k) of the source word) as required.

Hardwiring a mapping unit: Here we offer approaches to hardwiring a mapping unit (at manufacture) in a manner that makes some classes of partitions realizable.

For 0≦l<2^(y) and 0≦j<n, let m_(l,j) represent input l of multiplexer j. The aim is to assign each of these multiplexer inputs to one of the z source word bits s₀, s₁, . . . , s_(z−1).

Map input m_(l,j) to bit s_(q), where q=(l+2^(y)j)(mod z). We called this mapping “overlapped mapping.” For example, if y=2, z=5 and is =16, then the sequence of source word bit indices is as follows:

$\frac{\left( \overset{\overset{{source}\mspace{14mu} {word}\mspace{14mu} {bits}}{}}{\begin{matrix} 0123 & 1234 & 2340 & 3401 & 4012 & 0123 & 1234 & {2340\mspace{20mu} 3401} & 4012 & 0123 & 1234 & 2340 & 3401 & 4012 & 0123 \end{matrix}} \right)}{\left( \underset{\underset{{output}\mspace{14mu} {bit}}{}}{\begin{matrix} 0 & {\mspace{25mu} 1} & {\mspace{25mu} 2} & {\mspace{50mu} 3} & {\mspace{40mu} 4} & {\mspace{40mu} 5} & {\mspace{59mu} 6} & {{\mspace{25mu} \mspace{20mu}}7} & {\mspace{25mu} 8} & {\mspace{40mu} 9} & {\mspace{34mu} 10\mspace{34mu}} & {11\mspace{34mu}} & 12 & {\mspace{34mu} 13} & {\mspace{34mu} 14} & {\mspace{34mu} 15} \end{matrix}} \right)}$

With overlapped mapping, a set of q consecutive multiplexers have 2^(y)−(q−1) common source word bits. If Q is a block of an unordered partition, then any of these common source word bits form H_(Q) and can be used to assign the order of the block as indicated earlier.

As an example with n=16 and z=5, consider the partition π={B₀, B₁, B₂, B₃, B₄}={{0, 1, 2, 3}, {4}, {5, 6, 7}, {8, 9, 10, 11}, {12, 13, 14, 15}}. Here H_(B) ₀ ={3}, H_(B) ₁ ={0, 1, 2, 4}, H_(B) ₂ ={2, 3}, H_(B) ₃ ={1} and H_(B) ₄ ={0}. Assigning source word bits s₃, s₄, s₂, s₁, s₀ to blocks B₀, B₁, B₂, B₃, B₄ achieves the desired order. In general, this approach works well when subsets include proximate indices. However, the method is not guaranteed to work under all situations.

When additional flexibility is needed from the hardwiring, one could use “post-permutation,” in which overlapped mapping is applied to a permutation of the output and then the outputs permuted back as required. We illustrate this technique below.

In the earlier example of the section entitled “Hardwiring a mapping unit:” suppose that π′={B₀′, B₁′, B₂′, B₃′, B₄′} where B₀′={0, 1, 2, 3}, B₁′={4}, B₂′={5, 6, 7}, B₃′={10, 11, 12, 13} and B₄′={8, 9, 14, 15}. The corresponding sets H_(B) _(i) _(′) are {3}, {0, 1, 2, 4}, {2, 3}, {3}, and {0, 1}, respectively. Clearly, we cannot assign a unique source word bit to each block as H_(B) ₀ _(′)=H_(B) ₃ _(′)={3}; that is, both B₀′ and B₃′ have 3 as the only possible source word bit to connect to. If we use the partition π described earlier and permute the outputs so that B_(i) maps to B_(i)′, for each 0≦i≦4, we get the desired output as shown in FIG. 16.

This post permutation can be achieved by a butterfly network whose switches are configurable 2-input multiplexers. This network has a O(n log n) gate cost and O(log n) delay; that would not significantly alter the cost of the mapping unit in most cases. Also the network can be configured as needed using standard permutation-routing algorithms for the butterfly network. It may also be possible to use a butterfly network with fewer than the standard 1+log n stages as permutations among proximate outputs may not be required. This would further reduce the cost of the butterfly network.

However, the butterfly network is a blocking network (that is, certain permutations cannot be achieved). In principle, other (more expensive) non-blocking permutation networks can be employed to overcome this problem.

It must be noted that we are mapping an realizable block B′ to a required block B, where B and B′ have the same number of elements. If B and B′ each contain m elements, then within these blocks the elements can be mapped in m! ways. Thus, there may be a lot of room for the designer to avoid blocking in networks such as the butterfly.

Although this method does not guarantee that the hardwiring would allow every partition to be realizable, many practical problems that exhibit regularity and structure tend to be more amenable to analytical approaches and individualized fine-tuning.

4.1.3 Hybrid Mapping Units

In previous sections we described the fixed and configurable mapping units. While configurable mapping units provide more flexibility, they are more expensive than fixed mapping units. If the application does not call for such a flexibility, a fixed mapping unit may be preferable. Here we describe two hybrid mapping units that use elements of both the fixed and variable mapping units and occupy a middle ground between the flexibility and cost of the fixed and configurable mapping units.

A fixed mapping unit MU(z, y, n, α) fans-out the y-bit selector address to all n MUXs (shown as signals B₀, B₁, . . . , B_(n−1); here B₀=B₁= . . . =B_(n−1). In contrast, these ny bits of MUX control come from the configuration LUT in a configurable mapping unit; here y selector address bits are used to address at most 2^(y) LUT locations, each ny bits long. In this case the signals B₀, B₁, . . . , B_(n−1) are completely independent of each other. We now describe two hybrid schemes.

Hybrid Mapping Unit 1: Let Z_(n) be the set of (indices of) MUXs in the mapping unit. Divide this set into two disjoint subsets F and R (in any convenient manner that may depend on the application area). Use the y-bit selector address (suitably fanned out) to directly control all MUXs whose indices are in F; that is for all iεF, the value of B_(i) equals the value of the y-bits input to the mapping unit as in a fixed mapping unit. The remaining MUXs (with indices in R=Z_(n)−F) receive their control inputs from the control LUT as in a configurable mapping unit. If R contains l≦n elements, then each LUT word has a size of l_(y) bits. The advantage of this approach is that the LUT need not be as large as in a configurable mapping unit. Hybrid Mapping Unit 2: As before, let Z_(n) represent the set of MUXs in the mapping unit. For some integer 1≦l<n, partition Z_(n) into E blocks; Let this partition be {R₀, R₁, . . . , R_(l−1)}. (This partition has nothing to do with the partition of the outputs associated with the multicast from the source word bits.) Use a configuration LUT with wordsize ly. If a configuration word has the form

, . . . ,

then each MUX with index iεR_(j) receives control input {circumflex over (b)}{circumflex over (b_(j))}. As before, this reduces the size of the configuration LUT.

The advantage of both hybrids is that they reduce the size of the LUT word to ly<ny. This reduces the cost of the LUT if its size is kept the same. Alternatively, this can also allow one to increase the number of words in the LUT for the same cost as in the configurable mapping unit. An implication of this is that the configuration LUT can now store more partitions (say 2^(y′)/partitions for some y′>y) for the same cost as the configurable mapping unit. This would require y′ bits to be input to the configuration LUT. However, only y of these bits would be used with F and each MUX (regardless of whether it is in F or R) would still use y control bits and, consequently, we would still hardwire only 2^(y) source word bits to each MUX. This is needed to keep the collective cost of the n MUXs the same as before.

The hybrid mapping units can be viewed as a generalizations of the fixed and configurable mapping units. For the first hybrid, when F=Z_(n) (or R=0/), we have the fixed mapping unit and when R=Z_(n) (or F=0/) we have the configurable mapping unit. The second hybrid is a generalization of the configurable mapping unit; if l=n, then we have the standard configurable mapping unit. When l=1, then all MUXs received the same control signal as in the fixed mapping unit, but if a LUT of wordsize y is used, then the y control bits of the MUXs need not be the same as the y (or y′) bits input to the mapping unit.

4.1.9 Universal Mapping Unit

A mapping unit MU(z, y, n, α) is universal if and only if it can, under configuration, produce any set of 2^(y) log z independent subsets of Z_(n). It can be shown that a configurable mapping unit with z=2^(y) is universal. This is because, when z≦2^(y), each bit of the source word can be input to every MUX. Consequently, any partition B has H_(B)={0, 1, . . . , z−1}. Thus a universal mapping unit MU(2^(y), y, n, α) with O(ny2^(y)) gate cost and O(y+log n) delay exists.

It is not known whether this is the only universal mapping unit.

4.1.5 Bit-Slice Mapping Units

A bit-slice mapping unit generates just part of the output subset (represented by an n-bit word) at a time. It constructs a subset over α iterations, generating n/α bits in each iteration. This allows the mapping unit to exploit repeated patterns, such as these demonstrated in Table 6, representing two forms of reduction. Notice that to generate 8 words, each 16 bits long, only 6 words, each 4 bits long, need to be generated. For example, the subset S corresponding to word

TABLE 6 Subsets with repeated patterns for n = 16 and α = 4. Subset S Repeated Patterns 1111111111111111 1111 0001000100010001 0001 0000000100000001 0000, 0001 0000000000000001 0000, 0001 0000000011111111 0000, 1111 0000000000001111 0000, 1111 0000000000000011 0000, 0011 0000000000000001 0000, 0001 0001000100010001 can be constructed over 4 iterations using the bit pattern 0001. Overall, this allows the bit-slice mapping unit to decrease the required gate cost of its internal components in situations where an increased delay is tolerable.

A possible implementation of MU(z, y, n, α) is shown in FIG. 17. A shift register (SR) acts as a parallel to serial converter and stores the z-bit source words and outputs n/α bits every α cycles to the internal mapping unit

${{MU}\left( {\frac{z}{\alpha},y,\frac{n}{\alpha},1} \right)}.$

The

$\left( {\frac{n}{\alpha}\text{-}{bit}} \right)$

output of the mapping unit is stored in another shift register which parallelizes the

$\left( {\frac{n}{\alpha}\text{-}{bit}} \right)$

words into one n-bit word. A mod-α counter orchestrates this parallel to serial conversion by triggering a write-in operation on the input shift register and a write-out on the output shift register every a cycles. This allows a new source word to be input into the bit-slice mapping unit and an n-bit output q written out every a cycles.

Because the bit-slice mapping unit is a sequential circuit, we modify the definition of delay. For sequential circuits, we assume that the clock delay of the circuit to be the longer of (a) the longest path between any flip-flop output and any flip-flop input and (b) the longest path between any circuit input and output. Using this notion of delay, it can be shown that a bit-slice mapping unit MU(z, y, n, α) can be realized in a circuit with a gate costs of

$\lambda = {\frac{2^{y}}{\alpha}\left\lfloor {\log \; \frac{z}{\alpha}} \right\rfloor}$

and a delay of O(α(log log α+log n+y)), and the number of independent subsets is

$O\left( {{\log^{2}\alpha} + {n\left( {1 + \frac{y\; 2^{y}}{\alpha}} \right)}} \right)$

and the maximum total number of subsets producible is Λ=2^(y)/(2^(z)−2), provide

$y < {\left\lceil \frac{n}{z - 1} \right\rceil.}$

A point that that needs attention is the matter of how partitions play out in the bit-slice mapping unit. For example, the subsets of Table 6 produced by a fixed mapping unit MU(z, y, n, α) with z=5, 2^(y)=2 require two ordered partitions

{right arrow over (π)}₁=

{15,14,13,11,10,9,7,6,5,3,2,1},{12,4,}{8},{0}

and

{right arrow over (π)}₂=

{15,14,13,12,11,10,9,8},{7,6,5,4},{3,2},{1},{0}

and four, 5-bit source words (11111, 00111, 00011, 00001) to produce the n=16-bit outputs. In a bit-slice mapping unit, with

${\left\lceil \frac{z}{\alpha} \right\rceil = 2},$

and

${\frac{n}{\alpha} = 4},$

two ordered partitions {right arrow over (π)}₁′=

{3, 2}, {1, 0}

and {right arrow over (π)}₂′=

{3, 2, 1}, {0}

(on a smaller 4-element set) and just three, 2-bit source words (00, 01, and 11) are needed to produce the

$\left( \frac{n}{\alpha} \right) - {bit}$

repeated patterns 0011, 0001, 0000, and 1111. For the particular subsets of Z_(n) shown in Table 6, the bit-slice mapping unit shows good savings. In determining whether or not a bit-slice mapping unit is suitable to a design, a variety of considerations must be taken into account.

Overall a mapping unit (fixed, configurable, integral or bit-slice) MU(z, y, n, α) has the following parameters.

${(a)\mspace{14mu} {delay}\mspace{14mu} {of}\mspace{14mu} {O\left( {a\left( {y + {\log \; n}} \right)} \right)}},{(b)\mspace{14mu} {gate}\mspace{14mu} {cost}\mspace{14mu} {of}\mspace{14mu} {O\left( {n\left( {1 + \frac{y\; 2^{y}}{\alpha}} \right)} \right)}},{{(c)\mspace{14mu} {number}\mspace{14mu} {of}\mspace{14mu} {independent}\mspace{14mu} {subsets}\mspace{14mu} {producible}} = {\lambda = {\frac{2^{y}}{\alpha}\left\lfloor {\log \; \frac{z}{\alpha}} \right\rfloor}}},{{{{and}(d)}\mspace{14mu} {maximum}\mspace{14mu} {number}\mspace{14mu} {of}\mspace{14mu} {subsets}\mspace{14mu} {producible}} = {\Lambda = {2^{y}\left( {2^{z} - 2} \right)}}},{{{provided}\mspace{14mu} y} < {\left\lceil \frac{n}{z - 1} \right\rceil.}}$

4.2 A Mapping-Unit-Based Configurable Decoder

A configurable decoder has the same basic functionality as a fixed decoder. An x-to-n configurable decoder accepts an x-bit input word and outputs up to 2^(x) outputs, each n bits wide. Unlike fixed decoders, the output of a configurable decoder is not fixed at manufacture. With configuration, the n-bit outputs can be changed to a different pattern of bits, thus supplying a degree of flexibility not present in fixed decoders.

A 2^(x)×n look-up table or LUT may be considered as a type of x-to-n configurable decoder. A 2^(x)×n LUT also takes in an x-bit input word and outputs up to 2^(x) words, each n bit wide, where the n-bit words are determined by the contents of the LUT's memory array. Unfortunately, this “LUT decoder” is expensive, where the gate cost of is O(2^(x)(x+n)). If this decoder was implemented on the same scale as a log n-to-n one-hot decoder, then x=log n. This results in a decoder that, while able to produce (after configuration) any of the 2^(n) subsets of Z_(n), has a gate cost of Θ(n²). On the other hand, if the LUT decoder were restricted to the same asymptotic gate cost as the one-hot decoder (that is, Θ(n log n)), it would only be able to produce Θ(log n) subsets of Z_(n) (being at most a log n×n LUT). Although the flexibility of the LUT decoder is desirable, its cost does not scale well and an alternative is needed.

The configurable decoder described here is a circuit that uses a LUT (with a smaller order of cost), combined with a mapping unit. The mapping units we consider have the same order of cost as the LUT, and this allows the LUT cost to be kept as small as a fixed decoder while allowing a large number of n-bit subsets to be produced within the same order of gate cost as fixed decoders. We call these “mapping-unit-based” configurable decoders (or MU-B decoders). They take the same forms as the mapping unit itself: be integral or bit-slice, fixed or configurable. It should be noted that the MU-B decoder is always configurable, as even one using a fixed mapping unit employs a LUT.

By incorporating a “narrow” output LUT with a mapping unit that expands this narrow output into a wide n-bit output representing a subset of Z_(n), a device is obtained that is reduced in cost (compared to a LUT decoder) but has substantial flexibility. FIG. 18 shows a block diagram of the mapping-unit-based decoder. To put the figure in perspective, x

z<<n, generally. Unlike the LUT decoder solution, this solution expands the x-bit input in stages to construct the n-bit output.

As FIG. 18 shows, the x-to-n MU-B decoder (denoted by MUB(x, z, y, n, α)) has two main components, a 2^(x)×z LUT and a mapping unit MU(z, y, n, α). The LUT maps an x-bit input to a narrow z-bit word. The mapping unit MU(z, y, n, α) accepts this z-bit LUT output as an input source word u. It also accepts an ordered partition if as indirectly selected by the y-bit selector word B). The MU(z, y, n, α) then uses the operation μ(u, {right arrow over (π)}) to produce an n-bit word representative of a subset of Z_(n). Any MU(z, y, n, α) in combination with a 2^(x)×z LUT (or other type of memory) is considered a type of MU-B decoder, MUB(x, z, y, n, α) as shown in FIG. 18.

The flexibility of the MU-B decoder depends on the LUT and the value of z, the size of the source word. While z larger than a low-degree polynomial in n does not yield significant benefits and increases the LUT cost, a small z (such as z=log n) severely limits the number of independent subsets that can be generated by the mapping unit. Without the LUT, z has to be this small to address the pin limitation problem. Thus the role of the LUT is to start from a small number of input bits and expand it to z bits, trading the value of z off with the number of locations in the LUT. This provides room for constructing the MU-B decoder to particular specifications.

The next example illustrates a MU-B decoder with a bit-slice mapping unit. Consider the sets S₀={S₀ ⁰, S₁ ⁰, S₂ ⁰, S₃ ⁰} and S₁={S₀ ¹, S₁ ¹, S₂ ¹, S₃ ¹} shown in Table 7. Let S=S₀∪S₁ and let

TABLE 7 Set S = S₀ ∪ S₁. S_(j) ^(i) q ∈ Q z ∈ U S₀ ⁰ 1111111111111111 11111 S₁ ⁰ 0101010101010101 01111 S₂ ⁰ 0001000100010001 00111 S₃ ⁰ 0000000100000001 00011 S₄ ⁰ 0000000000000001 00001 S₀ ¹ 1111111111111111 11111 S₁ ¹ 0000000011111111 01111 S₂ ¹ 0000000000001111 00111 S₃ ¹ 0000000000000011 00011 S₄ ¹ 0000000000000001 00001 z=5 and 2^(y)=2. It is easy to verify that the ordered partitions for sets S₀, S₁ are

{right arrow over (π)}₀=

{15,13,11,9,7,5,3,1},{14,10,6,2},{12,4},{8},{0}

and

{right arrow over (π)}₁=

{5,14,13,12,11,10,9,8},{7,6,5,4},{3,2},{1},{0}

,

respectively. Then MUB(x, z, y, n, α) fixed mapping unit would require 16 multiplexers with 2 inputs each and a 5×5 LUT to hold the values of the source words (note that this is due to an intelligent ordering; in general the LUT could be as large as a 10×5).

Now assume that, α=log n=4. Then in each iteration, the decoder must produce the

$\left\lceil \frac{z}{\alpha} \right\rceil = 2$

words from the

$\frac{n}{\alpha} = {4\mspace{14mu} {bit}}$

bit words shown in Table 8.

For these n/α-bit words, three partitions are needed,

{right arrow over (π)}₀ ^(bs)=

{3,2},{1,0}

,

{right arrow over (π)}₁ ^(bs)=

{3,1},{2,0}

,

{right arrow over (π)}₂ ^(bs)=

{3,2,1},{0}

.

Since the original fixed mapping unit had values of z=5 and 2^(y)=2, the number of inputs to each multiplexer in the internal mapping unit of the bit-slice mapping unit would increase by one (from 2 to 3). However, the number of multiplexers would decrease from n=16 to

$\frac{n}{\alpha} = 4.$

This would imply a reduction in cost by a factor of

$\frac{16 \times 2}{4 \times 3} \approx {2.67.}$

TABLE 8 Source and output words for S. S_(j) ^(i) $\left\lceil \frac{z}{\alpha} \right\rceil - {{bit}{\; \mspace{14mu}}{input}\mspace{14mu} {word}}$ $\frac{n}{\alpha} - {{bit}\mspace{14mu} {word}\mspace{14mu} {produced}}$ S₀ ⁰ 11 1111 S₁ ⁰ 01 0101 S₂ ⁰ 01 0001 S₃ ⁰ 00, 01 0000, 0001 S₄ ⁰ 00, 01 0000, 0001 S₀ ¹ 11 1111 S₁ ¹ 00, 11 0000, 1111 S₂ ¹ 00, 11 0000, 1111 S₃ ¹ 00, 01 0000, 0011 S₄ ¹ 00, 01 0000, 0001

Regardless, the LUT must still supply a z-bit word to the bit-slice mapping unit (which in this case may increase to a 6-bit word based on the rounding up of

$\left\lceil \frac{z}{\alpha} \right\rceil$

). Thus, the implementation depends on the allowable costs, the number of z-bit source words and the corresponding size of the LUT, and the subsets that must be produced. Further, the ordering of the partitions can determine not only the size of the LUT in the MU-B decoder (and thus also the values of its parameters), but also dictate the subsets that can be produced.

It can be shown that: for any α≧1, a mapping-unit-based configurable decoder MUB(x, z, y, n, α) has a delay of O(x+log z+α(y+log n)) and a gate cost of

${O\left( {{2^{x}\left( {x + z} \right)} + {n\left( {1 + \frac{y\; 2^{y}}{\alpha}} \right)}} \right)};$

further, MUB(x, z, y, n, α) can produce at least

$\lambda = {\min \left\{ {2^{x},{\frac{2^{y}}{\alpha}\left\lfloor \frac{\log \; z}{\alpha} \right\rfloor}} \right\}}$

independent sets. Finally it can be shown that if 2^(x)≦2^(z)−2, and

$\left. {y \leq {\left\lceil \frac{n}{z - 1} \right\rceil - 1}} \right),$

then a MUB(x, z, y, n, α) can be built that produces 2^(x+y) distinct subsets of Z_(n).

Finally, to properly compare a LUT decoder with MUB(x, z, y, n, α), the following can be shown:

Let P be a LUT decoder, and let C be the proposed mapping-unit-based configurable decoder, each producing subsets of Z_(n). If both decoders have a gate cost G, such that G=Ω(n) and G is polynomially bounded in n, then for constant σ>0,

-   (a) When G=Θ(n log^(σ) n), then C can produce a factor of

$\ominus \left( \frac{n^{\varepsilon}\log^{\sigma}n}{\log \; \log \; n} \right)$

more independent subsets then P, and can produce a factor of

$\ominus \left( \frac{\log \; n}{\log \; \log \; n} \right)$

more dependent subsets, where 0ε<1.

-   (b) When G=n^(1+σ), then C would produce the same order of     independent subsets as P and is capable of producing up to

$\Theta \left( {\frac{G}{n}\left( \frac{n^{\varepsilon}}{\log^{\sigma}n} \right)} \right)$

dependent subsets, for any 0≦ε<1.

The above results indicate that with comparable cost for the LUT decoder and the proposed mapping-unit-based configurable decoder, the MU-B decoder is more flexible, generating more subsets than the LUT decoder.

4.3 Particular Instances of the MU-B Decoder

Many applications and algorithmic paradigms display standard patterns of resource use. Here we examine three cases: (1) Binary Reduction, (2) one-hot and (3) Ascend/Descend.

Binary Reduction (in general, a total order of subsets): Consider the binary tree reductions (or simply binary reductions), shown in FIG. 19. In each reduction, the number of resources is reduced by a factor of two in each level of the tree; FIGS. 19( a) and (b) illustrate this for two particular reductions. The bit patterns representing these reductions are also shown, where a bit has a value of ‘1’ if it survives the reduction at a particular level in the tree and a value of ‘0’ if it does not. In general, we denote the subset of Z_(n) used during iteration i of a binary reduction (where 0≦i≦log n) by S_(i).

In discussing binary reduction, we consider a more general case involving a set S of totally ordered subsets. Let S={S₀, S₁, . . . , S_(k−1)} be a set of k subsets of Z_(n) such that S₀⊃S₁⊃ . . . ⊃S_(k−1); that is, the elements of S are totally ordered by the “proper superset of relation. For each 0≦i<k, let π_(S) _(i) denote the partition induced by S_(i). It can be shown that

$\begin{matrix} {\pi = {{\pi_{S_{0}} \cdot \pi_{S_{1}}}\mspace{14mu} \ldots \mspace{14mu} \pi_{S_{k - 1}}}} \\ {= \left\{ \begin{matrix} {\begin{Bmatrix} {S_{0},{S_{1} - S_{0}},{S_{2} - S_{1}},\ldots \mspace{14mu},} \\ {{S_{k - 1} - S_{k - 2}},{Z_{n} - S_{k - 1}}} \end{Bmatrix},} & {{{if}\mspace{14mu} S_{k - 1}} = Z_{n}} \\ {\begin{Bmatrix} {S_{0},{S_{1} - S_{0}},{S_{2} - S_{1}},\ldots \mspace{14mu},} \\ {S_{k - 1} - S_{k - 2}} \end{Bmatrix},} & {{{if}\mspace{14mu} S_{k - 1}} \Subset Z_{n}} \end{matrix} \right.} \end{matrix}$

For binary reduction, k=1+log n=log 2n in the above notation and S_(log n)=Z_(n). Therefore,

π={S ₀ , S ₁ −S ₀ , S ₂ −S ₁ , . . . , S _(log n) −S _(log n−1)}

has log 2n blocks.

Consider the two binary reductions of FIGS. 19( a) and (b). The ordering results in the subsets shown in Table 9.

The first reduction pattern has subsets S₀ ⁰={0}, S₁ ⁰={0, 4}, S₂ ⁰={0, 2, 4, 6} and S₃ ⁰={0, 1, 2, 3, 4, 5, 6, 7}. This results in the partition π⁰={{7, 5, 3, 1}, {6, 2}, {4}, {0}}. Similarly, the second reduction pattern produces the partition π¹={{7, 6, 5, 4}, {3, 2}, {1}, {0}}.

TABLE 9 Two binary tree based reduction patterns S₀ ^(i) n-bit pattern S₁ ^(i) n-bit pattern S₀ ⁰ 00000001 S₁ ⁰ 00000001 S₀ ¹ 00010001 S₁ ¹ 00000011 S₀ ² 01010101 S₁ ² 00001111 S₀ ³ 11111111 S₁ ³ 11111111

A binary reduction corresponding to a partition π={S₀, S₁−S₀, S₂−S₁, . . . , S_(log n)−S_(log n−1)} can be implemented on MUB(log log 2n, log 2n, 1, n, α). A MUB(log log 2n, log 2n, y, n, α) can implement 2^(y)/different binary reductions. Since corresponding subsets in different binary reductions still have the same number of elements, the same set of log2n source words can be used for all reductions; different ordered partitions need to be used, however.

The reduction corresponding to the unordered partition π⁰={{7, 5, 3, 1}, {6, 2}, {4}, {0}} can be ordered so that the blocks (in the order shown) correspond to source words bits 3, 2, 1, 0 (where 0 is the least significant bit or lsb). Thus, the output set (represented as an n-bit word with bit 0 as the lsb) produced by source word s₃, s₂, s₁, s₀ and the ordered partition is s₃, s₂, s₃, s₁, s₃, s₂, s₃, s₀. To produce the sets S₀ ⁰, S₁ ⁰, S₂ ⁰, S₃ ⁰ the source words are 0001, 0011, 0111, 1111, respectively. If we now order π¹={{7, 6, 5, 4}, {3, 2}, {1}, {0}} so that the blocks (in the order shown) correspond to source word bits 3,2,1,0, then it is easy to verify that the same source words 0001, 0011, 0111, 1111 produce sets S₀ ¹,S₁ ¹,S₂ ¹,S₃ ¹, respectively.

One-Hot Decoders: A set of one-hot subsets is a set of subsets of Z_(n), each represented by an n-bit output word with each output word having only one active bit (usually with a value of ‘1’), all other bits being inactive (usually ‘0’). (The ideas we present also apply to decoders using an active-low logic where a ‘0’ represents inclusion of an element of Z_(n) in the subset and ‘1’ represents exclusion of the element from the subset.) Table 10 shows an example for active-high logic.

The structure of the partition induced by a set of one-hot subsets is a particular case of a set of disjoint subsets, that we now describe. Let S={S₀, S₁, . . . , S_(k−1)} be a set of subsets of Z_(n), that are pairwise disjoint; that is, for any 0>i,j<k, S₁∩S_(j)=. Let

TABLE 10 A set of 1-hot subsets of Z₁₆ S_(i) n-bit value S₀ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 S₁ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 S₂ 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 S₃ 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 S₄ 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 S₅ 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 S₆ 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 S₇ 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 S₈ 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 S₉ 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 S₁₀ 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 S₁₁ 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 S₁₂ 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 S₁₃ 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 S₁₄ 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 S₁₅ 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 S_(k)=Z_(n)−(S₀∪S₁∪ . . . ∪S_(k−1)). It can be shown that the partition induced by the sets in S is

$\pi = \left\{ \begin{matrix} {\left\{ {S_{0},S_{1},\ldots \mspace{14mu},S_{k - 1}} \right\},} & {{{if}\mspace{14mu} S_{k}} = {0/}} \\ {\left\{ {S_{0},S_{1},\ldots \mspace{14mu},S_{k - 1},S_{k}} \right\},} & {{{if}\mspace{14mu} S_{k}} \neq {0/}} \end{matrix} \right.$

Thus if the given set S has k disjoint subsets, then the partition induced by S has at most k+1 blocks. For the one-hot set of subsets, k=n and the induced partition is {{0}, {1}, . . . , {n−1}}. Moreover, because the subsets are disjoint, the product of any k partitions π_(S) _(i) induced by a set of k one-hot subsets results in a partition with at least k blocks. Thus if we were to construct z-block partitions, we will need

${\Omega\left( \frac{n^{2}\log \; n}{z} \right)},$

partitions to capture a set of one-hot subsets. This would require

${y = {{\Theta \left( {\log \frac{n}{z}} \right)} = {\Theta \left( {\log \; n} \right)}}},$

as z is of substantially smaller order than n. This would make the gate cost of the MU-B decoder

$\Theta \left( \frac{n}{z} \right)$

which is too high to be of practical value.

Thus, the 1-hot sets are easy to produce in a conventional fixed decoder, they present a difficult embodiment for the MU-B decoder described so far. One method of producing the 1-hot subsets in a MU-B decoder is to use a LUT with 2^(x)=n rows (or x=log n). A LUT contains a 1-hot address decoder, and since a configurable decoder MUB(log n, z, y, n, α) contains a n×z LUT, a simple switch allowing the output of the LUT's address decoder to be the output of the configurable decoder automatically allows the configurable decoder to produce the 1-hot subset. Also, the parallel decoder described subsequently teaches a simple way to construct a one-hot decoder out of MU-B decoders.

Ascend/Descend: Communication patterns can also induce subsets. For example, if a node can either send or receive in a given communication, but not both simultaneously, then for the ASCEND/DESCEND communication patterns shown in FIG. 20 for n=8, the subsets generated are as indicated in the box in the figure. (The ASCEND/DESCEND communication patterns are also called normalized hypercube communication patterns).

The subsets of the Ascend/Descend class of communications are more difficult than those of the binary reduction for a mapping unit to produce. This is because the product of all induced partitions of the 2 log n subsets of the Ascend/Descend class of communications results in an n-partition of Z_(n) as in the one-hot case; again as z<<n, this cannot be represented by a single z-partition. However, the partitions induced by ASCEND/DESCEND subsets can be combined more effectively.

For the next discussion, we recognize that ASCEND/DESCEND subsets are in complementary pairs that induce the same partition. In fact each level of the ASCEND/DESCEND algorithm has one complementary pair; that is, there one induced partition per level of the algorithm. For the moment, we consider just a set of log n ASCEND/DESCEND sets (one per level). It is easy to show that the product any k partitions induced by k of ASCEND/DESCEND sets has 2^(k) blocks, each of size

$\frac{\log \; n}{\log \; z}$

Thus, one method of generating ASCEND/DESCEND subsets is to use

$\frac{\log \; n}{\log \; z}$

z-partitions, each with 2 log z source words (where z is a power of 2, say z=2^(k)).

For example, the partition for the first level of communications is π₁={{7, 5, 3, 1}, {6, 4, 2, 0}}. Taken for log z such levels, this results in a single z-partition that with 2 log z source words can produce 2 log z of the different 2 log n subsets. For example, consider z=4. Then, log z=2, which implies that two levels can be represented by a single partition. If a partition represents levels one and two, then this results in the partition π={7, 3}, {6, 2}, {5, 1}, {4, 0}).

Taken for all 2 log n subsets, this results in a total of

$\frac{n}{2^{k}}$

such partitions, and a total of 2 log z source words. Table 11 illustrates a possible ordering of the partitions and source words for the ASCEND/DESCEND sets shown in FIG. 20.

TABLE 11 Partitions and source words generated for ASCEND/DESCEND subsets for n = 8 and z = 4 S_(i) π Source words output word S₀

{7, 3}, {6, 2}, {5, 1}, {4, 0}

1010 10101010 S₁ 0101 01010101 S₂ 1100 11001100 S₃ 0011 00110011 S₄

{7, 6, 5, 4}, {3, 2, 1, 0}

dd10 11110000 S₅ dd01 00001111 d denotes a don't care value

4.4 Parallel Configurable Decoders

Decoders can be structured in a parallel configuration utilizing a merge operation (such as an associative Boolean operation) to combine the outputs of two or more decoders. A parallel embodiment using MU-B decoders will be denoted MUB(x, z, y, n, α, P) where the parameter P denotes the number of configurable decoders connected in parallel. Although we present examples in which a parallel configurable decoder uses multiple instances of configurable decoders of the same size and type, they could, in principle, be all different.

4.4.1 Parallel, Configurable One-Hot Decoder

A parallel configurable decoder can produce sets of subsets of Z_(n) not easily produced by the configurable decoders previously presented. The following example demonstrates the use of parallel decoders to produce the one-hot decoder.

Consider two subsets S₀, S₁ of Z_(n). Assume that an integer m divides n, or n=km for some integer k. Then Z_(n)={0, 1, . . . , m−1, m, m+1, . . . , 2m−1, 2m, . . . , im−1, . . . , (i+1)m−1, . . . , (k−1)m, . . . , km−1}. For 0≦i<m and

${0 \leq j < \frac{n}{m}},$

let

q _(i,0) ={i+ml:0≦l<k}

and let

q _(i,1) ={jm+l:0≦l<m}.

Clearly, q_(i,0) and q_(i,1) are subsets of Z_(n). Table 12 illustrates the subsets for n=20 and m=4.

TABLE 12 Subsets q_(i,0) and q_(i,1) for n = 20 and m = 4 n-bit word q_(i,0) q_(0,0) 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 q_(1,0) 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 q_(2,0) 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 q_(3,0) 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 q_(j,1) q_(0,1) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 q_(1,1) 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 q_(2,1) 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 q_(3,1) 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 q_(4,1) 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Let S₀={q_(i,0): 0≦i<m} and

$z = {m = {\frac{n}{m}.}}$

Subsets S₀ and S₁ induce partitions π₀={q_(i,0): 0≦i<m} and

${\pi_{1} = \left\{ {{q_{j,1}\text{:}0} \leq j < \frac{n}{m}} \right\}},$

respectively.

For

$S_{1} = {\left\{ {{q_{j,1}\text{:}0} \leq j < \frac{n}{m}} \right\}.}$

two z-partitions of n can generate these subsets. Put differently, each subset of S₀ and S₁ can be independently generated by different MU-B decoders, each using just one partition. Note that q_(i,0)∩q_(j,1)={jm+i}, and it can be shown that for each xεZ_(n), there exists unique values 0≦i<m and

${z = {k = \frac{n}{m}}},$

such that xεq_(i,0)∩q_(j,1), and hence

$ = \left\{ {q_{i,0}\bigcap{q_{j,1}:{0 \leq i < {m\mspace{14mu} {and}\mspace{14mu} 0} \leq j < \frac{n}{m}}}} \right\}$

is the set of one-hot subsets. A simple method to generate the one-hot subsets using parallel decoders is shown in FIG. 21.

If m=√{square root over (n)}, then both m and n/m form feasible values for the input for a mapping unit; that is,

$0 \leq j < \frac{n}{m}$

Note that a y-bit selector address is not needed as only one ordered partition is used; that is, y=0. (However, the y-bit input would allow additional subsets to be generated from additional partitions.) Thus, for the MU-B decoders

${x_{0} = {{\log \; m} = {{\log \; \sqrt{n}} = {{\log \; \frac{n}{m}} = x_{1}}}}},$

and z₀=m=√{square root over (n)}=n/m=z₁, and y₀=y₁=0; also n₀=n₁=n. Both MU-B decoders use a single partition, hardwired into their respective mapping units, as shown in FIGS. 22( a) and (b).

The cost of each MU-B decoder is the cost of a √{square root over (n)}×√{square root over (n)}LUT with a

${MUB}\left( {{\frac{1}{2}\log \; n},\sqrt{n},0,n,0,1} \right)$

which is Θ(n). Clearly, increasing y₀ and y₁ to any constant will increase the number of subsets produced without altering the Θ(n) gate cost.

Two smaller log √{square root over (n)}-to-√{square root over (n)} 1-hot decoders arranged as shown in this example will also produce a larger log n to n 1-hot decoder with O(n) cost (this is elaborated upon further below). However, the MU-B decoder approach offers room for additional partitions and hence additional subsets (within the same asymptotic cost) and considerably higher flexibility.

4.4.2 Parallel Fixed One-Hot Decoder

If the application calls for just a fixed one-hot decoder, a MU-B decoder could be much too expensive. Here the ideas presented for a parallel MU-B decoder are adapted to a fixed one-hot decoder. Let D₀ and D₁ be two instances of a

${q_{k}^{0} = p_{l}^{0}},{{{where}\mspace{14mu} l} = \left\lfloor \frac{k}{\sqrt{n}} \right\rfloor}$ $q_{k}^{1} = {{p_{m}^{1}\mspace{14mu} {where}\mspace{14mu} m} = {k\mspace{11mu} {mod}\mspace{11mu} \sqrt{n}}}$

one-hot decoder (see FIG. 23 for an example with n=4). Assume that

$\frac{1}{2}\log \; n$

is an integer. For i=0,1, let the outputs of D_(i) be p_(j) ^(i), where 0≦j<√{square root over (n)}. That is, if the input to D_(i) (expressed as a binary number) is j, then p_(j) ^(i)=1 (or active); otherwise, p_(j) ^(i)=0 (or inactive). Fan each of these sets of outputs to n-bit positions q_(j) ^(i) as follows. For 0≦j<√{square root over (n)} and 0≦k<n,

$\frac{1}{2}\log \; n\text{-}{to}\text{-}\sqrt{n}$

These outputs are the same as those illustrated in Table 12. Therefore, the log n-to-n one-hot decoder outputs r_(k) (where 0≦k<n can be obtained as

r_(k)=q_(k) ⁰ AND q_(k) ¹.

FIG. 23 illustrates this. Since a conventional log n-to-n one-hot decoder has O(log n) delay and O(n log n) gate cost, decoders D_(i) each has O(log n) delay and O(√{square root over (n)} log n) gate cost. Each of the 2√{square root over (n)} fan-outs is of degree √{square root over (n)}, so this has O(log n) delay and O(√{square root over (n)}√{square root over (n)})=O(n) gate cost. The last step of ANDing the two set of n bits clear las constant delay and O(n) gate cost. (Note if an active-low convention is adopted for the decoder, the above AND gates would be replaced by OR gates.)

Overall, this implementation of a one-hot decoder has O(log n) delay and O(n) gate cost. Compared to the conventional implementation of a one-hot decoder exemplified in FIG. 5, our design has comparable delay, but a lower order of cost. In fact, since n outputs are required, this asymptotic gate cost cannot be improved upon.

4.4.3 General Structure of a Parallel Mapping-Unit-Based Configurable Decoder

In general, a P-element parallel configurable decoder MUB(x, z, y, n, α, P) is shown in FIG. 24. As shown, P decoders “receive” all x+y input bits. In use, each decoder CD_(i), where 0≦i<P, selects a portion x_(i) and y_(i) of the input bit streams x and y, respectively, as the input and selection information.

Two decoders, say MUB_(i) and MUB_(j) may use the same input bit(s) or share some common input bit(s) for their LUTs. Therefore, x_(i)≦x and

${\sum\limits_{i = 0}^{P - 1}y_{i}} \geq {y.}$

as each input bit is assumed to be used at least once. Similarly, y_(i)≦y and

${{\sum\limits_{i = 0}^{P - 1}x_{i}} \geq x},$

The merge unit could perform functions ranging from set operations (where n_(i)=n, for all i) to simply rearranging bits (when

$\left. {{\sum\limits_{i = 0}^{P - 1}n_{i}} = n} \right).$

The (optional) control allows the merge unit to select from a range of options.

Clearly, each MUB_(i) can produce its own independent set of n_(i)-bit outputs. The manner in which these outputs combine depends on the merge unit. For example, let each MUB_(i) produce an n-bit output (that is, a subset of Z_(n)) and let S_(i) be the independent set of subsets produced by MUB_(i). Let the merge operations be ∘, an associative set operation with identity S_(o). Intersection, Union, and Ex-OR represent such an operation with Z_(n), 0/, and 0/, respectively, as identities. If each MUB_(i) produces a set of subsets S_(i) that includes S_(o), then the whole parallel MU-B decoder produces an independent set that includes

$\sum\limits_{i = 0}^{P - 1}{S_{i}.}$

Let MUB_(i) have a delay of D_(i) and a gate cost of G_(i). If D_(M) and G_(M) are the delay and gate cost of the merge unit, then the delay D and gate cost G of the parallel MU-B decoder MUB(x, Z, y, n, α, P) are

$D = {{{\max \left( D_{i} \right)} + D_{M} + {{O\left( {\log \; P} \right)}.G}} = {\left( {\sum\limits_{i = 0}^{P - 1}G_{i}} \right) + G_{M} + {{O\left( {P\left( {x + y} \right)} \right)}.}}}$

If the merge unit uses simple associative set operations (such as Union, Intersection, Ex-OR) that correspond to bit-wise logical operations, then D_(M)=O(log P) and G_(M)=O(nP). Since x+y≦n, the overall cost and delay for this structure is

$D = {{{\max \left( D_{i} \right)} + {{O\left( {\log \; P} \right)}.G}} = {\left( {\sum\limits_{i = 0}^{P - 1}G_{i}} \right) + {{nP}.}}}$

4.5 Other Decoder Variants

The other variants of the MU-B decoder include a serial MU-B decoder and one based on a recursive bit-slice mapping unit. These variants are not preferred as they did not provide any additional benefit over the designs included by a stand alone mapping-unit-based decoder.

A serial MU-B decoder is shown in FIG. 25. Two or more mapping units are cascaded to construct the subsets of Z_(n). Note that the independent subsets produced by the second mapping unit are dependent on what is provided to it, that is, the range of values of z₁, which is in turn dependent on the number of independent subsets produced by the first mapping unit. Thus, since the first mapping unit in FIG. 25 can produce 2^(y0) (log z₀) independent subsets, where z₀ is a relatively small value, a single LUT can usually subsume both the LUT and the first mapping unit in the serial variant, and be within the gate cost of the second mapping unit and provide more independent subsets. In a recursive bit-slice mapping unit, illustrated in FIG. 26, where two or more bit slice mapping units are nested within one another, such that an input to the first bit-slice mapping unit is broken down by a factor of α₀ then broken down further by a factor of α₁, and so on, until it reaches the lowest level mapping unit. It is then reconstructed to an n-bit output. However, this reconstruction requires a large number of shift registers and multiple clocks, and the linear reduction of cost does not provide additional benefit from that of a single bit-slice mapping unit.

4.6 Applications for MU-B Decoders

Besides FPGAs and other reconfigurable computing platforms, applications of the MU-B decoder include sensor networks and external power controllers. Typical sensor networks consist of a collection of small sensor nodes (motes) that communicate to a base station through a distributed wireless network. Because the range of individual nodes is small, outlying nodes must relay their data to the base station through closer nodes. A large amount of power is expended during the receiving and transmission of data. Because of this, data must be compressed or encoded in some fashion so as to conserve power. This situation is similar to the pin limitation problem, wherein a large amount of data must be compressed in some fashion to pass through a small number of I/O pins. A decoder-based solution to the pin limitation problem could easily be applied to sensor networks, as the decoder itself would require no significant changes to the architecture of the sensor and would act as a method of compression for the data. A configurable decoder (and a reverse encoder) can serve to reduce the number of bits transmitted between sensor nodes without requiring a drastic redesign of the sensor nodes.

Power management and low-power operation have become driving factors in many applications (for instance, the design of embedded systems). An external power controller can reduce the clock frequency of a chip such that the overall power consumed by the chip is reduced. Used indiscriminately, this method can unnecessarily hurt the performance of the chip, as not all parts of the chip may require a reduction in power. A “smart” power controller could select portions of a chip for reductions in power, reducing the performance of only those portions that are not necessary for the chip's current execution. Thus, the overall power draw of the chip would be reduced without drastically affecting the performance. However, this ability is hampered by the large number of I/O pins that would be necessary for such addressing. A decoder-based solution that would allow efficient addressing of portions of a chip through a small number of I/O pins would directly address this problem. As the configurable decoder works to select a subset, this selection can be used by a smart agent that observes data from a collection of chips and issues commands to selectively power-down portions of these chips. A sharp focused selection (such as that afforded by the configurable decoder) could be useful in this environment. 

1. A configurable mapping unit comprising a circuit in combination with a reconfigurable first memory device, where the circuit has as input an z-bit source word having a binary value at each z-bit position, and an input selector word from said first memory device, said selector word having a value, and said circuit outputs an n-bit output word having a binary value at each n-bit position, where each n-bit position is hardwire connectable to a subset of said z-bit positions (the “Mapping Subsets”), where n>z, where the binary value of each bit position of said n-bit output word is set as the binary value, or the complemented binary value, of a selected one of said z-bit positions in its Mapping Subset (the “Selected Map Bit”), where for a first non-null subset of said n-bit output words bit positions, said Selected Map Bits are chosen by the value of said selector word.
 2. The configurable mapping unit of claim 1 wherein said selector word from said first memory device is chosen by a y-bit selector address word input to said first memory device.
 3. The configurable mapping unit of claim 2 wherein said first memory device comprises a look up table (LUT).
 4. The configurable mapping unit of claim 2 wherein selector address word contains y-bits and said first memory device comprises 2^(y) entries, each ny bits long.
 5. The configurable mapping unit of claim 1 where said first non-null subset of said n-bit output words bit positions includes all n-bit positions.
 6. The configurable mapping unit of claim 2, wherein a second disjoint pre-selected nonempty subset of bit positions of said n-bit output words Selected Map Bits are chosen by said value of said selector address word.
 7. The configurable mapping unit according to claim 1 wherein said circuit further comprises n multiplexers, one for each bit position of said n-bit output word, and said z-bit positions are hardwire connectable to said n-bit positions through said multiplexers, as specified in said Mapping Subsets.
 8. A mapping unit comprising a circuit, where said circuit has as input an z-bit source word having a binary value at each z-bit position, and as input a selector address word, and said circuit outputs an n-bit output word where n>z, where said circuit has a selectable fixed number of hardwired multicasts of said z-bit positions to said n-bit positions, where said input selector address word selects one of said multicasts, thereby assigning to each n-bit position, the value, or the complemented value, of the z-bit position multicasted to said n-bit position.
 9. A configurable mapping unit (“CMU”) according to claim 8 further having a second memory device having as input an x-bit input word, said second memory device outputting said z-bit source word.
 10. A configurable mapping unit (“CMU”) comprising a circuit and an associated reconfigurable first memory device, where said circuit has as input an z-bit source word, having a binary value at each z-bit position, and as input a selector word, and said first memory device has a input a selector address word, where said circuit outputs an n-bit signal where n>z, where said circuit has a selectable fixed number of hardwire multicasts of said z-bit positions to said n-bit positions, where said input selector address word selects a selector word from said first memory device, and said value of said selector word chooses, for a fixed subset of said n-bit output word bit positions, one of said multicasts, thereby assigning to each n-bit position in said fixed subset the value, or the complemented value, of the z-bit position multicast to said n-bit position.
 11. A mapping-unit-based configurable decoder (a “MU-B Configurable Decoder”) comprising the configurable mapping unit of claim 1 and further comprising a reconfigurable second memory device, said second memory device receiving as input an x-bit input word and outputting said z-bit source word, where x<z.
 12. A configurable mapping unit comprising a circuit in combination with a first memory device, where the circuit has as input an z-bit source word having a binary value at each z-bit position, and a selector word input from said first memory device, and said circuit outputs an n-bit word, where n>z, where each n-bit position is hardwire connectable to an associated fixed subset of z-bit positions, where said value of said selector word selects, for a non-empty subset {α_(i)} of said n-bit positions, a corresponding position in said z-bit source word for each α_(i) from that α_(i)'s associated fixed subset of z-bit positions, and said circuit assigns, to each α_(i) of the n-bit output word, the binary value (or the complementary value) of the corresponding z-bit position where said selector word is selected by a selector address word input to said first memory device.
 13. A MU-B Configurable Decoder comprising a configurable mapping unit according to claim 12 and further having a second reconfigurable memory device, with a x-bit word as input, said second memory device outputting said z-bit source word.
 14. A bit-slice mapping unit comprising a circuit where the circuit has as input an z-bit source word having a binary value at each bit position, and an input selector address word, and said circuit forms an $\left( \frac{n}{\alpha} \right) - {bit}$ word, n/α being an integer and α is an integer ≧2, where n>z, where each $\left( \frac{n}{\alpha} \right) - {bit}$ position is hardwire connectable to an associated fixed subset of z-bit positions, where said binary value of each bit position of said $\left( \frac{n}{\alpha} \right) - {bit}$ word is based upon said binary value of a selected one of the z-bit positions in said $\left( \frac{n}{\alpha} \right) - {bit}$ positions associated fixed subset, where said value of said selector address word selects said z-bit positions.
 15. The bit slice mapping unit of claim 14 wherein said mapping unit periodically forms n/α words from said z-bit source word periodically, and stores a selected number of said formed n/α words.
 16. The bit sliced mapping unit of claim 14 wherein said mapping unit stores a of said n/α words, and combines said α stored n/α words into an n-bit output word.
 17. A bit slice mapping unit according to claim 15, wherein said periodical formation of said $\left( \frac{n}{\alpha} \right) - {bit}$ word is initiated by a clock cycle.
 18. A method of hardwiring a configurable mapping unit of claim 7, where each n multiplexers have a series of input ports m_(l,j) (“m_(l,j)” represents the lth input port of multiplexer j, where l=0, . . . , 2^(y)−1 and j=0, . . . , n−1), and where said method comprising the step of wiring each input bit position p to multiplexers input ports m_(l,j), where p=(i+2^(y)j)(mod z) for all j and n.
 19. A method of constructing an ordered partition to create a set of desired output n bit output words {A_(k−1), . . . , A₀} from a set of desired input z-bit source words (I_(l−1), . . . , I₀) comprising the steps of: (a) ordering said set of output words {A_(k)} (b) for each said output word element A_(k), form its induced partition π_(A) _(k) and assign variables p_start←0, and s_start←0 (c) save the partition π_(p) _(—) _(start)=π_(A) _(s—start) π_(A) _(s—start+1) π_(A) _(s—start+2) . . . π_(A) _(l) where l is the largest integer such that π_(p) _(—) _(start) has less than or equal to z blocks, (d) Set variables p_start←p_start+1 and s_start←l+1. (e) If said induced partition of any output word A_(k) has not been considered in step (c), then go to step (c).
 20. The configurable mapping unit of claim 6 wherein said second memory device comprises a LUT of 2^(x) entries, each z bits long.
 21. A parallel MU-B configurable decoder comprising a plurality of MU-B configurable decoders {P_(i)} according to claim 11, each said P_(k) MU-B configurable decoder (“P_(k)”) has a z_(k)-bit source word, output from said P_(k)'s associated said second memory device, where said P_(k)'s associated second memory device has an x_(k)-bit input word, and a y_(k)-bit selector address word input to said P_(k)'s associated said first memory device, where said P_(k)'s associated first memory device outputs a P_(k) selector word, and each P_(k) outputs a n_(k)-bit, output word, where said parallel MU-B configurable decoder combines said set of output words {n_(k)} into an n-bit output word.
 22. A parallel CMU decoder comprising a plurality {M_(i)} of CMUs according to claim 9, where each said M_(k) CMU has a z_(k)-bit source word, and a y_(k)-bit selector address word, and where each M_(k)'s associated second memory device has an x_(k)-bit input word, and each M_(k)'s MU-B configurable decoder outputs an n_(k)-bit output word, where said parallel MU-B configurable decoder combines said set of output words into an n-bit output word.
 23. The parallel MU-B configurable decoder of claim 21 where y₁=y₂=y₁ z_(k)=z and n₁=n₂=n.
 24. The parallel MU-B configurable decoder of claim 21 where said P_(k) input word is the same word for all k, and said P_(k) selector word is the same word for all k.
 25. A binary reduction decoder (“BR decoder”) comprising a MU-B configurable decoder according to claim 9, where y≧1, z=log(2n), x=log log(2n), where said set of possible n-bit output words is {A_(k)} for a preset configuration of said MU-B decoder, each said n-bit output word having a characteristic set CA_(k), and said set of characteristic sets {CA_(k)} having at least one subset {S_(k)}, for k=0 to log n, such that S_(log 2n)⊂S_(log(2n)−1)⊂ . . . ⊂S₁⊂S₀.
 26. The parallel MU-B configurable decoder according to claim 21 wherein a subset of said set of output words {n_(k)} are combined into an n-bit output word using Boolean functions.
 27. An integrated circuit having x′ input pins, and internal portions of said integrated circuit being addressable by n-bit words, where n>x′, said integrated chip incorporating at least one MU-B configurable decoder according to claim 11 having an n-bit output word, wherein said n-bit output word specifies an addressable location internal to said integrated chip.
 28. A universal configurable mapping unit decoder comprising the configurable mapping unit of claim 1 wherein said Mapping Subsets is all n-bit positions of said output word for each input z-bit position.
 29. A parallel MU-B configurable decoder according to claim 21, having a first and a second MU-B decoders, each outputting an output word n₁ and n₂ of n bits, having x₁ and x₂ as input words, x₁ being log m bits long and x₂ being log n/m bits long, where ${m = \frac{n}{k}},$ for some integer k, and source words z₁ and z₂, respectively, where z₁ is m-bits long and z₂ is n/m a bits long, where said selector word is of length y≧1, where each said output word has a characteristic set, where {CN₁} is the set of characteristic sets of said output words {N₂}, and where {CN₂} is the set of characteristic sets of output words, where {CN₁} has a subset {q_(i,1): 0≦i<m}, where and q_(i,1)={i+ml: 0≦l<k} and where {CN₂} has a subset $\left( {\log \mspace{14mu} \frac{n}{m}} \right) - {bit}$ where and q_(j,2)={jm+l: 0≦l<M}.
 30. A parallel decoder circuit comprising a first decoder D₁ and a second decoder D₂, said D₁ decoder receiving a login-bit input word and outputting n₁ bits where n₁>log m, and decoder D₂ receiving a $m = \frac{n}{k}$ input word and outputting n₂-bits, where $\left. {{q_{j,2}\text{:}\mspace{14mu} 0} \leq j < \frac{n}{m}} \right\},$ and $\frac{n}{m}\text{-}{to}\text{-}\frac{n}{m}$ for some integer k, where said n₁ bits are formed from a hardwired multicast of said x₁ bits, and said n₂ bits are formed from a hardwired multicast of said x₂ bits, said output n₁ bits and said output n₂ bits being combined into an n-bit length output word.
 31. A parallel decoder circuit according to the claim 30 where said first decoder D₁ comprises a log(m)-to-m 1-hot decoder circuit and said m-output bits being input to a first fanout circuit and fanned out to n Boolean gates, n>m, said n gates receiving at most one bit per gate from said first fanout circuit, and where said second decoder D₂ comprises a log $n_{2} > {\log \; \frac{n}{m}}$ 1-hot decoder circuit and said n/m output bits of said second decoder D₂ input to a second fanout circuit and fanned out to said n Boolean gates, ${n > \frac{n}{m}},$ said n gates receiving at most one bit per gate from said second fanout circuit, and said n outputs of said n Boolean gates being combined to form an n-bit word.
 32. A method of checking if a given k-block partition π is realizable on a set of said hardwired connections of a mapping unit according to claim 1, and if the said partition ir is realizable, to order it accordingly, comprising the steps of: (a) generating the bipartite graph of the said hardwired connections and the said partition π, whose nodes are said z-bit source word positions and the k blocks of said partition π said partition π (b) Find a maximum matching on the graph, if one exists (c) if the said maximum matching exists and its size is k, then order the said partition π by assigning to each block its matching source node position.
 33. A method of constructing a set of realizable ordered partitions on a set of said hardwired connections of a mapping unit according to claim 1, given a desired set of output words {A_(i)}, comprising the steps of: (a) applying the method of claim 19 using different orders of the said set of output words {A_(i)} in step (a) of claim 19, saving realizable output partitions, ordering the said realizable partitions, and removing from {A_(i)} all output words encompassed by the said realizable partitions. (b) iteratively applying step (a) with the allowed partition sixe in claim 19 decreasing from z−1 down to
 2. (c) breaking each remaining said output words into smaller sets, until their induced partitions are realizable, saving the said realizable partitions, and ordering said realizable partitions. 